Skip to content

Commit

Permalink
[SETUPLIB][REACTOS][USETUP] Split FS-volume-specific functionality fr…
Browse files Browse the repository at this point in the history
…om partitions (reactos#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.
  • Loading branch information
HBelusca committed Aug 21, 2024
1 parent 9adfe8e commit 872c955
Show file tree
Hide file tree
Showing 15 changed files with 914 additions and 861 deletions.
1 change: 1 addition & 0 deletions base/setup/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ list(APPEND SOURCE
utils/partinfo.c
utils/partlist.c
utils/regutil.c
utils/volutil.c
bootcode.c
bootsup.c
fsutil.c
Expand Down
Loading

0 comments on commit 872c955

Please sign in to comment.