reactos/base/setup/usetup
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 [USETUP] Fix typo in Japanese (ja-JP) translation (#7219) 2024-08-07 17:52:27 +03:00
spapisup [USETUP] Make the "SpApiSup" files usable from e.g. the GUI setup. 2024-02-08 19:08:39 +01:00
CMakeLists.txt [SETUPLIB][USETUP] Isolate and decouple the filesystem operations code from the UI (#7049) 2024-07-01 16:18:57 +02:00
cmdcons.c [REACTOS] Fix a number of MSVC warnings 2021-07-23 22:03:48 +02:00
cmdcons.h [SETUP] Remove myself from the 1st stage setup code 2018-05-27 21:33:07 +02:00
console.c [USETUP] Default to en-US output codepage when initializing the console. Addendum to commit 9f201d462. 2022-01-17 16:16:10 +01:00
console.h [SETUP] Remove myself from the 1st stage setup code 2018-05-27 21:33:07 +02:00
consup.c [USETUP] Speed up CONSOLE_SetStatusTextXV +17% (#5086) 2023-02-21 09:14:26 +09:00
consup.h [USETUP] Minor formatting only. 2020-10-02 00:04:11 +02:00
devinst.c [UMPNPMGR][USETUP] Use PlugPlayControlStartDevice in usetup and umpnpmgr 2021-03-16 03:17:58 +03:00
devinst.h [USETUP] Modify the integrated user-mode PnP manager along the lines of UMPNPMGR, so that we can wait until all the queued device installations finish before continuing the installation further. 2018-12-23 20:37:14 +01:00
fmtchk.c [SETUPLIB][USETUP] Isolate and decouple the filesystem operations code from the UI (#7049) 2024-07-01 16:18:57 +02:00
fmtchk.h [SETUPLIB][USETUP] Isolate and decouple the filesystem operations code from the UI (#7049) 2024-07-01 16:18:57 +02:00
fslist.c [SETUPLIB][USETUP] FS utilities: Use the ISO C and C++ conformant name: _wcsicmp 2024-07-01 16:28:17 +02:00
fslist.h [SETUPLIB][USETUP] Factor out the usage of FS provider structures. 2019-03-10 15:41:05 +01:00
genlist.c [USETUP][VGAFONTS] Improve Romanian character display (#4750) 2022-10-08 07:46:00 +09:00
genlist.h [SETUPLIB][USETUP] Don't store UI-related display strings in GENERIC_LIST_ENTRY-ies, + other code adaptations. 2018-10-28 01:32:15 +02:00
keytrans.c [USETUP] Remove the WIN32 support because usetup is a native-only application 2018-05-15 23:35:17 +02:00
keytrans.h [USETUP] Remove the WIN32 support because usetup is a native-only application 2018-05-15 23:35:17 +02:00
mui.c [SETUPLIB][USETUP] Convert MUI_LANGUAGE codepages to numbers. 2024-02-09 22:06:39 +01:00
mui.h [USETUP] Rename some MUI string identifiers (#5837) 2023-10-28 17:08:38 +02:00
muilanguages.h [USETUP] Add Croatian (hr-HR) translation (#4080) 2021-12-10 00:16:49 +03:00
partlist.c [SETUPLIB][REACTOS][USETUP] Split FS-volume-specific functionality from partitions (#7258) 2024-08-26 16:42:47 +02:00
partlist.h [SETUPLIB][USETUP] Reduce duplicated code 2024-07-04 17:14:32 +02:00
progress.c [USETUP][VGAFONTS] Improve Romanian character display (#4750) 2022-10-08 07:46:00 +09:00
progress.h [USETUP] Progress-bar: minor improvements. 2018-08-27 23:55:58 +02:00
usetup.c [SETUPLIB][REACTOS][USETUP] Split FS-volume-specific functionality from partitions (#7258) 2024-08-26 16:42:47 +02:00
usetup.h [SETUPLIB][USETUP] Isolate and decouple the filesystem operations code from the UI (#7049) 2024-07-01 16:18:57 +02:00
usetup.rc [SETUPLIB][USETUP] Diverse additions. 2018-06-03 22:12:45 +02:00