History log of /reactos/base/setup/lib/utils/osdetect.c (Results 1 – 12 of 12)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: 0.4.16-dev, 0.4.15
# 6f15802a 18-May-2024 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>

[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 ove

[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.

show more ...


# a2777cd8 20-Jun-2024 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>

[SETUPLIB] Cleanup some partition getters and remove GetDiskOrPartition.

- osdetect.c: Replace usage of GetDiskOrPartition by SelectPartition.


# c7295b2c 04-May-2024 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>

[SETUPLIB] Support different boot store file creation/opening and access modes

The support is so far enabled only for INI files (freeldr.ini, boot.ini).
May be subject to further improvements in the

[SETUPLIB] Support different boot store file creation/opening and access modes

The support is so far enabled only for INI files (freeldr.ini, boot.ini).
May be subject to further improvements in the future.

Usage examples:

- When finding existing ReactOS or Windows installations, the boot store
should exist and is opened in read-only mode. Closing the boot store
doesn't store any temporary modifications made to it.

- When doing a clean installation, freeldr.ini is created in read-write
access.

- When installing with an existing freeldr.ini or boot.ini, they are
opened as existing files in read-write access.

show more ...


# 68c2a289 04-May-2024 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>

[SETUPLIB] Split OpenAndMapFile function and Doxygen-ize it


# b7ad4a22 07-Dec-2023 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>

[SETUPLIB][USETUP] Some cleanup for partition code.

- Make the Create*Partition helpers take a size in bytes, not in sectors.

This allows them to be easier to use by the caller, alleviating the

[SETUPLIB][USETUP] Some cleanup for partition code.

- Make the Create*Partition helpers take a size in bytes, not in sectors.

This allows them to be easier to use by the caller, alleviating the
need for making the size conversion into sectors. Instead it is done
internally by the helpers.

- Introduce helper macros to easily retrieve the size of a partition
entry or a disk in bytes, from their internal representation in number
of sectors.

- The 'AutoCreate' variable being USETUP-specific, remove it from the
PARTENTRY structure and use instead a flag set into the 'New' member.

- Rename IsDiskSizeValid to IsPartitionLargeEnough, to better describe
what the function is for.

show more ...


Revision tags: 0.4.14-release
# 5d8e8348 29-Jun-2021 Timo Kreuzer <timo.kreuzer@reactos.org>

[REACTOS] Fix a number of MSVC warnings


Revision tags: 0.4.15-dev, 0.4.14-RC, 0.4.13-release, 0.4.14-dev, 0.4.13-RC, 0.4.12-release, 0.4.12-RC, 0.4.13-dev, 0.4.11-release
# 29cc1843 24-Feb-2019 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>

[SETUPLIB][USETUP] Minor improvements.

- Make some partitioning functions not dependent on the selected "CurrentPartition".
- Add some sanity checks.
- Improve some of the "is-partitioned" checks.


Revision tags: 0.4.11-RC, 0.4.12-dev, 0.4.10-release, 0.4.11-dev, 0.4.10-RC, 0.4.9-release, 0.4.10-dev, 0.4.9-RC, 0.4.8-release, 0.4.8-RC, 0.4.9-dev
# e282ec39 28-Jan-2018 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>

[SETUPLIB] Retrieve and store the machine (architecture) ID of the discovered NTOS installations. Will be used later.


# 9016b5f3 28-Oct-2018 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>

[SETUPLIB] Silence noisy DPRINTs.


# f80ec8b8 29-Dec-2017 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>

[SETUPLIB] Store the vendor name for each discovered NTOS installation.

Take also the opportunity to simplify a little bit the code.


Revision tags: 0.4.7-release, v0.4.7, 0.4.8-dev, 0.4.7-rc1, backups/GSoC_2017/rapps@75905
# 254aa472 03-Sep-2017 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>

[SETUPLIB][USETUP] Make the GENERIC_LIST store the items display text in UNICODE (and not in ANSI).

Only convert to ANSI when needed (e.g. in the display code for usetup).
The 1st-stage GUI setup wi

[SETUPLIB][USETUP] Make the GENERIC_LIST store the items display text in UNICODE (and not in ANSI).

Only convert to ANSI when needed (e.g. in the display code for usetup).
The 1st-stage GUI setup will however use the UNICODE strings directly.

svn path=/branches/setup_improvements/; revision=75753

show more ...


Revision tags: ReactOS-0.4.6, backups/ros-branch-0_4_6@75728
# 6f19c83b 28-Aug-2017 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>

[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.

svn path=

[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.

svn path=/branches/setup_improvements/; revision=75695

show more ...