[FASTFAT] Save the FSINFO sector location
authorPierre Schweitzer <pierre@reactos.org>
Sat, 9 Jun 2018 10:11:43 +0000 (12:11 +0200)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 9 Jun 2018 10:11:43 +0000 (12:11 +0200)
drivers/filesystems/fastfat/fsctl.c
drivers/filesystems/fastfat/vfat.h

index f7eaf0c..486535d 100644 (file)
@@ -232,6 +232,7 @@ VfatHasFileSystem(
                     FatInfo.RootCluster = ((struct _BootSector32*) Boot)->RootCluster;
                     FatInfo.rootStart = FatInfo.dataStart + ((FatInfo.RootCluster - 2) * FatInfo.SectorsPerCluster);
                     FatInfo.VolumeID = ((struct _BootSector32*) Boot)->VolumeID;
+                    FatInfo.FSInfoSector = ((struct _BootSector32*) Boot)->FSInfoSector;
                     RtlCopyMemory(&FatInfo.VolumeLabel, &((struct _BootSector32*)Boot)->VolumeLabel, sizeof(FatInfo.VolumeLabel));
                 }
                 else
index 8148d2f..fcb22b9 100644 (file)
@@ -263,6 +263,7 @@ typedef struct
     ULONG FatType;
     ULONG Sectors;
     BOOLEAN FixedMedia;
+    ULONG FSInfoSector;
 } FATINFO, *PFATINFO;
 
 struct _VFATFCB;