[SETUPLIB] Add NTFS boot support. (#3778)

This commit is contained in:
Vadim Galyant 2022-10-19 03:02:24 +03:00 committed by GitHub
parent a33719500c
commit 2580889cfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 200 additions and 4 deletions

View file

@ -68,6 +68,7 @@ FormatFileSystem(
#define FAT_BOOTSECTOR_SIZE (1 * SECTORSIZE)
#define FAT32_BOOTSECTOR_SIZE (1 * SECTORSIZE) // Counts only the primary sector.
#define BTRFS_BOOTSECTOR_SIZE (3 * SECTORSIZE)
#define NTFS_BOOTSECTOR_SIZE (16 * SECTORSIZE)
typedef NTSTATUS
(/*NTAPI*/ *PFS_INSTALL_BOOTCODE)(
@ -96,6 +97,12 @@ InstallBtrfsBootCode(
IN HANDLE DstPath,
IN HANDLE RootPartition);
NTSTATUS
InstallNtfsBootCode(
IN PCWSTR SrcPath,
IN HANDLE DstPath,
IN HANDLE RootPartition);
//
// Formatting routines