2003-04-28 Casper S. Hornstrup <chorns@users.sourceforge.net>
authorCasper Hornstrup <chorns@users.sourceforge.net>
Mon, 28 Apr 2003 19:44:13 +0000 (19:44 +0000)
committerCasper Hornstrup <chorns@users.sourceforge.net>
Mon, 28 Apr 2003 19:44:13 +0000 (19:44 +0000)
commit37f29ead4b629d45f463bf167b883476b67d78e6
treec51fc6b2336eddf7b956ead95f353d866dd2595a
parent55300ebbf297bbc63b3c0d5155528fd9f731c605
2003-04-28  Casper S. Hornstrup  <chorns@users.sourceforge.net>

* lib/fslib/vfatlib/vfatlib.h: New file.
* subsys/system/usetup/format.c: Ditto.
* subsys/system/usetup/format.h: Ditto.
* lib/fslib/vfatlib/vfatlib.c (GetShiftCount): Define.
(VfatWriteBootSector, VfatWriteFsInfo, VfatWriteFAT,
VfatWriteRootDirectory): New function.
(VfatFormat): Implement.
* subsys/system/usetup/bootsup.c: (InstallFat32BootCodeToFile): Use
0x0000 as marker to disable backup boot sector.
(InstallFat32BootCodeToDisk): Add lower 8-bit to BackupBootSector.
Also treat 0x0000 as no backup boot sector is available.
* subsys/system/usetup/makefile (TARGET_SDKLIBS): Define.
(TARGET_OBJECTS): Add format.o.
* subsys/system/usetup/partlist.c (AddPartitionList): Initialize
PartNumber field.
(GetSelectedPartition): Set PartEntryNumber correctly.
(CreateSelectedPartition): Write partition information to disk.
(DeleteSelectedPartition): New function.
* subsys/system/usetup/partlist.h (PARTDATA): Add field CreatePartition.
(DeleteSelectedPartition): Prototype.
* subsys/system/usetup/usetup.c (ConfirmDeletePartition): New function.
(SelectPartitionPage): Support deletion of partition.
(FormatPartitionPage): Support formatting of partition.

svn path=/trunk/; revision=4612
reactos/ChangeLog
reactos/lib/fslib/vfatlib/vfatlib.c
reactos/lib/fslib/vfatlib/vfatlib.h [new file with mode: 0755]
reactos/subsys/system/usetup/bootsup.c
reactos/subsys/system/usetup/format.c [new file with mode: 0755]
reactos/subsys/system/usetup/format.h [new file with mode: 0755]
reactos/subsys/system/usetup/makefile
reactos/subsys/system/usetup/partlist.c
reactos/subsys/system/usetup/partlist.h
reactos/subsys/system/usetup/usetup.c