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 [SETUPLIB][REACTOS][USETUP] Further improve the interfacing with INF and File-Queue APIs. 2018-11-01 18:55:43 +01:00
utils [SETUPLIB][REACTOS][USETUP] Split FS-volume-specific functionality from partitions (#7258) 2024-08-26 16:42:47 +02:00
bootcode.c [SETUPLIB] Code re-organization in bootsup.c and fsutil.c. 2020-10-18 20:56:16 +02:00
bootcode.h [SETUPLIB] Code re-organization in bootsup.c and fsutil.c. 2020-10-18 20:56:16 +02:00
bootsup.c [SETUPLIB] Use new BootPath value for BootSector boot entries (#6815) 2024-05-07 12:33:14 +02:00
bootsup.h [USETUP][SETUPLIB] Continue hiding the FAT32 format in the format list, but take it into account anyway later on. 2020-10-20 01:19:58 +02:00
CMakeLists.txt [SETUPLIB][REACTOS][USETUP] Split FS-volume-specific functionality from partitions (#7258) 2024-08-26 16:42:47 +02:00
errorcode.h [USETUP] Don't error out in case one tries to "delete" empty partition space. 2023-11-19 16:44:34 +01:00
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 [SETUPLIB][USETUP] Move all the code that performs file copying into the SETUPLIB. 2018-11-05 23:18:47 +01:00
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 [SETUPLIB] Move the files that implement utility functions into their own subdirectory. The files remaining in the main directory implement setup procedures that use the utility functions. 2018-10-27 22:09:34 +02:00
registry.c [SETUP] Silence some noisy DPRINT1 2019-01-01 10:08:02 +01:00
registry.h [SETUPLIB][USETUP] Move the registry-update procedure into setuplib. 2018-10-28 14:42:00 +01:00
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 [USETUP][BOOTDATA] Include optional CJK standard fonts (#2336) 2020-02-14 10:47:20 +09:00