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
spapisup
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
CMakeLists.txt
errorcode.h
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
install.c [BOOTDATA][SETUPLIB][REACTOS] INF support fixes. 2018-11-06 00:04:19 +01:00
install.h
mui.c
mui.h
muifonts.h
muilanguages.h
precomp.h
registry.c
registry.h
settings.c
settings.h
setuplib.c [BOOTDATA][SETUPLIB][REACTOS] INF support fixes. 2018-11-06 00:04:19 +01:00
setuplib.h