reactos/base/setup/lib
Hermès Bélusca-Maïto f527e23aa7
[SETUPLIB] Lock the BTRFS volume before installing the new bootsector code.
CORE-15334 CORE-15339

The BTRFS driver requires the volume to be locked in order to modify
the first sectors of the partition, even though they are outside the
file-system space / in the reserved area (they are situated before
the super-block at 0x1000) and is in principle allowed by the NT
storage stack.
So we lock here in order to write the bootsector at sector 0.
If locking fails, we ignore and continue nonetheless.

See also the following links for reference:
https://stackoverflow.com/a/12928934
https://docs.microsoft.com/en-us/windows/desktop/api/fileapi/nf-fileapi-writefile
https://support.microsoft.com/en-us/help/942448/changes-to-the-file-system-and-to-the-storage-stack-to-restrict-direct
2018-11-11 21:55:48 +01:00
..
lang [SETUPLIB][USETUP][INPUT.CPL] MUI integration with setuplib. 2018-10-28 00:13:07 +02:00
spapisup [SETUPLIB][REACTOS][USETUP] Further improve the interfacing with INF and File-Queue APIs. 2018-11-01 18:55:43 +01:00
utils [SETUP] Align partition start at 2048 minimum 2018-11-11 17:38:37 +01:00
bootsup.c [SETUPLIB] Lock the BTRFS volume before installing the new bootsector code. 2018-11-11 21:55:48 +01:00
bootsup.h [USETUP][SETUPLIB] Move the bootsup.c code into the setuplib, and perform the necessary adjustments. 2018-10-27 22:09:32 +02:00
CMakeLists.txt [SETUPLIB][USETUP] Move all the code that performs file copying into the SETUPLIB. 2018-11-05 23:18:47 +01:00
errorcode.h [SETUPLIB] Remove a deprecated error number (that gets merged with ERROR_TXTSETUP_SECTION). 2018-10-28 01:43:56 +02:00
fsutil.c [USETUP] Remove the PARTITION_EXT2 constant and use PARTITION_LINUX in favour since PARTITION_EXT2 is just an alias to PARTITION_LINUX 2018-11-07 23:16:29 +01:00
fsutil.h [USETUP][SETUPLIB] Move the bootsup.c code into the setuplib, and perform the necessary adjustments. 2018-10-27 22:09:32 +02:00
install.c [BOOTDATA][SETUPLIB][REACTOS] INF support fixes. 2018-11-06 00:04:19 +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] Use NT RTL String Safe functions instead of Win32-oriented ones (and remove usage of HRESULT too). 2018-10-28 00:58:46 +02:00
mui.h [SETUPLIB][USETUP][INPUT.CPL] MUI integration with setuplib. 2018-10-28 00:13:07 +02:00
muifonts.h [SETUPLIB][USETUP][INPUT.CPL] MUI integration with setuplib. 2018-10-28 00:13:07 +02:00
muilanguages.h [SETUPLIB][USETUP][INPUT.CPL] MUI integration with setuplib. 2018-10-28 00:13:07 +02: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 [SETUPLIB][REACTOS][USETUP] Further improve the interfacing with INF and File-Queue APIs. 2018-11-01 18:55:43 +01:00
registry.h [SETUPLIB][USETUP] Move the registry-update procedure into setuplib. 2018-10-28 14:42:00 +01:00
settings.c [SETUPLIB][REACTOS][USETUP] Further improve the interfacing with INF and File-Queue APIs. 2018-11-01 18:55:43 +01:00
settings.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
setuplib.c [BOOTDATA][SETUPLIB][REACTOS] INF support fixes. 2018-11-06 00:04:19 +01:00
setuplib.h [SETUPLIB][USETUP] Move all the code that performs file copying into the SETUPLIB. 2018-11-05 23:18:47 +01:00