svn commit: r352887 - stable/12/sbin/newfs_msdos
Xin LI
delphij at FreeBSD.org
Mon Sep 30 05:43:57 UTC 2019
Author: delphij
Date: Mon Sep 30 05:43:57 2019
New Revision: 352887
URL: https://svnweb.freebsd.org/changeset/base/352887
Log:
MFC r351382:
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.
Modified:
stable/12/sbin/newfs_msdos/mkfs_msdos.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sbin/newfs_msdos/mkfs_msdos.c
==============================================================================
--- stable/12/sbin/newfs_msdos/mkfs_msdos.c Mon Sep 30 04:54:02 2019 (r352886)
+++ stable/12/sbin/newfs_msdos/mkfs_msdos.c Mon Sep 30 05:43:57 2019 (r352887)
@@ -717,7 +717,7 @@ mkfs_msdos(const char *fname, const char *dtype, const
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) %
More information about the svn-src-stable
mailing list