reactos/base/setup/lib
Hermès Bélusca-Maïto 6f15802af7
[SETUPLIB][REACTOS][USETUP] Split FS-volume-specific functionality from partitions (#7258)
CORE-13525

This greatly helps in reducing code complexity in some areas: code that
previously iterated over all partitions of a given disk, just to find
which ones were partitioned and contained a valid file system, now just
have to iterate over mounted volumes.
See in particular, `lib/utils/osdetect.c` and `lib/fsutil.c` .

- Remove FORMATSTATE "Preformatted" enum value;
- Cleanup osdetect code after introducing Volume support;
- Some simplifications for FormatState.

- Differentiate between 'new' partition and 'new' volume:

  * "New" partition: it has been created and added in the cached list,
    but not yet actually written into the disk.

  * "New" volume: newly-created volume (may be backed by a partition or
    not), not yet formatted. May exist on either new, or not new partition,
    or elsewhere.

- Cache partition and volume NT device names.

  These do not change across repartitioning operations, as long as the
  partition or the filesystem volume hasn't been deleted/recreated.
  This avoids doing \Device\Harddisk%u\Partition%u sprintf's everytime
  we need to retrieve the given partition or volume device name.

  When a partition/fileysystem volume is "virtually" created (i.e. in
  the partition list, but not yet committed to disk and exposed to the
  OS), no device partition number and device name are available yet.
  In particular, validate that no manipulation of \Device\HarddiskM\Partition0
  (i.e. the whole disk) is being made.
2024-08-26 16:42:47 +02:00
..
lang [SETUPLIB][USETUP] Convert internal MUI_LAYOUTS data to numbers. 2024-02-09 21:28:23 +01:00
spapisup
utils [SETUPLIB][REACTOS][USETUP] Split FS-volume-specific functionality from partitions (#7258) 2024-08-26 16:42:47 +02:00
bootcode.c
bootcode.h
bootsup.c [SETUPLIB] Use new BootPath value for BootSector boot entries (#6815) 2024-05-07 12:33:14 +02:00
bootsup.h
CMakeLists.txt [SETUPLIB][REACTOS][USETUP] Split FS-volume-specific functionality from partitions (#7258) 2024-08-26 16:42:47 +02:00
errorcode.h
fsutil.c [SETUPLIB][REACTOS][USETUP] Split FS-volume-specific functionality from partitions (#7258) 2024-08-26 16:42:47 +02:00
fsutil.h [SETUPLIB][REACTOS][USETUP] Split FS-volume-specific functionality from partitions (#7258) 2024-08-26 16:42:47 +02:00
install.c [SETUPLIB] Make the settings' Process* functions take an actual value instead of a GENERIC_LIST 2024-02-18 16:30:46 +01:00
install.h
mui.c [SETUPLIB][USETUP] Convert MUI_LANGUAGE GeoID values to numbers. 2024-02-09 22:33:30 +01:00
mui.h [SETUPLIB][USETUP] Convert MUI_LANGUAGE GeoID values to numbers. 2024-02-09 22:33:30 +01:00
muifonts.h [NTGDI][FREETYPE][SETUP][INF] Support FontLink (#7009) 2024-06-30 22:15:34 +09:00
muilanguages.h [SETUPLIB][USETUP] Convert MUI_LANGUAGE GeoID values to numbers. 2024-02-09 22:33:30 +01:00
precomp.h
registry.c
registry.h
settings.c [SETUPLIB] Make the settings' Process* functions take an actual value instead of a GENERIC_LIST 2024-02-18 16:30:46 +01:00
settings.h [SETUPLIB] Make the settings' Process* functions take an actual value instead of a GENERIC_LIST 2024-02-18 16:30:46 +01:00
setuplib.c [SETUPLIB][REACTOS][USETUP] Split FS-volume-specific functionality from partitions (#7258) 2024-08-26 16:42:47 +02:00
setuplib.h [SETUPLIB][REACTOS][USETUP] Split FS-volume-specific functionality from partitions (#7258) 2024-08-26 16:42:47 +02:00
substset.h