When creating a new FAT32 filesystem, use "unknown" (0xFFFFFFFF) for
FSI_Nxt_Free instead of providing a wrong value. With this change, fsck_msdosfs would no longer complain about invalid FSInfo information. MFC after: 2 weeks
This commit is contained in:
parent
acef7371c5
commit
aa9cb40e30
@ -717,7 +717,7 @@ mkfs_msdos(const char *fname, const char *dtype, const struct msdos_options *op)
|
||||
mk4(img, 0x41615252);
|
||||
mk4(img + MINBPS - 28, 0x61417272);
|
||||
mk4(img + MINBPS - 24, 0xffffffff);
|
||||
mk4(img + MINBPS - 20, bpb.bpbRootClust);
|
||||
mk4(img + MINBPS - 20, 0xffffffff);
|
||||
mk2(img + MINBPS - 2, DOSMAGIC);
|
||||
} else if (lsn >= bpb.bpbResSectors && lsn < dir &&
|
||||
!((lsn - bpb.bpbResSectors) %
|
||||
|
Loading…
Reference in New Issue
Block a user