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) %
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to