Commit 417b6d0
disk: Set volume label also on BPB update
The existing code is only designed to update the serial number, but
MS-DOS and DR-DOS also update the volume and filesystem type too.
This patch enables updating of the volume field which is the
common case, but in the future it may be considered to update the
filesystem type also. DOS provides two methods of updating the
BPB (int21/6901 and int21/440d/0846), on FreeDOS the same code
implements both functions.
I have added tests on Dosemu2's test suite to cover serial number,
volume and filesystem type, the latter is marked as unsupported.1 parent 14c6201 commit 417b6d0
1 file changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
709 | 709 | | |
710 | 710 | | |
711 | 711 | | |
| 712 | + | |
712 | 713 | | |
713 | 714 | | |
714 | 715 | | |
715 | 716 | | |
716 | 717 | | |
| 718 | + | |
| 719 | + | |
717 | 720 | | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
| 721 | + | |
| 722 | + | |
724 | 723 | | |
725 | 724 | | |
726 | 725 | | |
727 | 726 | | |
728 | 727 | | |
729 | 728 | | |
730 | 729 | | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
731 | 737 | | |
732 | 738 | | |
733 | 739 | | |
| |||
0 commit comments