FAT file system-FAT32 FSInfo Sector Structure

来源:互联网 发布:中国税务教育网络大学 编辑:程序博客网 时间:2024/05/16 13:07
Name Offset (byte) Size (bytes) Description FSI_LeadSig 0 4 Value 0x41615252. This lead signature is used to validate that this is in fact an FSInfo sector. FSI_Reserved1 4 480 This field is currently reserved for future expansion. FAT32 format code should always initialize all bytes of this field to 0. Bytes in this field must currently never be used. FSI_StrucSig 484 4 Value 0x61417272. Another signature that is more localized in the sector to the location of the fields that are used. FSI_Free_Count 488 4 Contains the last known free cluster count on the volume. If the value is 0xFFFFFFFF, then the free count is unknown and must be computed. Any other value can be used, but is not necessarily correct. It should be range checked at least to make sure it is <= volume cluster count. FSI_Nxt_Free 492 4 This is a hint for the FAT driver. It indicates the cluster number at which the driver should start looking for free clusters. Because a FAT32 FAT is large, it can be rather time consuming if there are a lot of allocated clusters at the start of the FAT and the driver starts looking for a free cluster starting at cluster 2. Typically this value is set to the last cluster number that the driver allocated. If the value is 0xFFFFFFFF, then there is no hint and the driver should start looking at cluster 2. Any other value can be used, but should be checked first to make sure it is a valid cluster number for the volume. FSI_Reserved2 496 12 This field is currently reserved for future expansion. FAT32 format code should always initialize all bytes of this field to 0. Bytes in this field must currently never be used.  FSI_TrailSig 508 4 Value 0xAA550000. This trail signature is used to validate that this is in fact an FSInfo sector. Note that the high 2 bytes of this value—which go into the bytes at offsets 510 and 511—match the signature bytes used at the same offsets in sector 0.