[FREELDR] Allow to boot from FATX volume using vfatfs driver

Also copy vfatfs.sys to disk in 1st stage setup.
CORE-16216 CORE-16329 CORE-16373
This commit is contained in:
Stanislav Motylkov 2022-09-24 16:52:14 +03:00
parent 542e9f2ba0
commit 328cc41192
No known key found for this signature in database
GPG key ID: AFE513258CBA9E92
2 changed files with 12 additions and 1 deletions

View file

@ -124,6 +124,7 @@ pci.sys = 1,,,,,,x,4,,,,1,4
scsiport.sys = 1,,,,,,,4,,,,1,4
storport.sys = 1,,,,,,,4,,,,1,4
fastfat.sys = 1,,,,,,x,4,,,,1,4
vfatfs.sys = 1,,,,,,,4,,,,1,4
btrfs.sys = 1,,,,,,x,4,,,,1,4
ramdisk.sys = 1,,,,,,x,4,,,,1,4
pciide.sys = 1,,,,,,,4,,,,1,4

View file

@ -1547,6 +1547,16 @@ const DEVVTBL FatFuncTable =
L"fastfat",
};
const DEVVTBL FatXFuncTable =
{
FatClose,
FatGetFileInformation,
FatOpen,
FatRead,
FatSeek,
L"vfatfs",
};
const DEVVTBL* FatMount(ULONG DeviceId)
{
PFAT_VOLUME_INFO Volume;
@ -1634,5 +1644,5 @@ const DEVVTBL* FatMount(ULONG DeviceId)
// Return success
//
TRACE("FatMount(%lu) success\n", DeviceId);
return &FatFuncTable;
return (ISFATX(Volume->FatType) ? &FatXFuncTable : &FatFuncTable);
}