Chameleon

View fat_on_gpt_patch.txt

1diff --git a/i386/libsaio/disk.c b/i386/libsaio/disk.c
2--- a/i386/libsaio/disk.c
3+++ b/i386/libsaio/disk.c
4@@ -1478,16 +1478,31 @@ static BVRef diskScanGPTBootVolumes(int biosdev, int * countPtr)
5 {
6 case FDISK_NTFS:
7 bvr = newGPTBVRef(biosdev, gptID, gptMap->ent_lba_start, gptMap,
8-0, 0, 0, 0, 0, 0, NTFSGetDescription,
9+0, 0, 0, 0, 0, NTFSGetUUID, NTFSGetDescription,
10 (BVFree)free, 0, kBIOSDevTypeHardDrive, 0);
11 break;
12
13 case FDISK_LINUX:
14 bvr = newGPTBVRef(biosdev, gptID, gptMap->ent_lba_start, gptMap,
15-0, 0, 0, 0, 0, 0, EX2GetDescription,
16+0, 0, 0, 0, 0, EX2GetUUID, EX2GetDescription,
17 (BVFree)free, 0, kBIOSDevTypeHardDrive, 0);
18 break;
19
20+case FDISK_FAT32:
21+case FDISK_DOS12:
22+case FDISK_DOS16B:
23+bvr = newGPTBVRef(biosdev, gptID, gptMap->ent_lba_start, gptMap,
24+ MSDOSInitPartition,
25+ MSDOSLoadFile,
26+ MSDOSReadFile,
27+ MSDOSGetDirEntry,
28+ MSDOSGetFileBlock,
29+ MSDOSGetUUID,
30+ MSDOSGetDescription,
31+ MSDOSFree,
32+ 0, kBIOSDevTypeHardDrive, 0);
33+break;
34+
35 default:
36 bvr = newGPTBVRef(biosdev, gptID, gptMap->ent_lba_start, gptMap,
37 0, 0, 0, 0, 0, 0, 0,
38

Archive Download this file

Attachment to issue 386

Created: 9 years 4 months ago by zenith432