svn commit: r299089 - head/sbin/fsck_msdosfs
Pedro F. Giffuni
pfg at FreeBSD.org
Wed May 4 22:27:23 UTC 2016
Author: pfg
Date: Wed May 4 22:27:22 2016
New Revision: 299089
URL: https://svnweb.freebsd.org/changeset/base/299089
Log:
fsck_msdosfs: Adjust a check.
The on-disk FAT array does not include anything before CLUST_FIRST,
compensate in size check.
Obtained from: NetBSD (CVS Rev. 1.20)
MFC after: 2 weeks
Modified:
head/sbin/fsck_msdosfs/boot.c
Modified: head/sbin/fsck_msdosfs/boot.c
==============================================================================
--- head/sbin/fsck_msdosfs/boot.c Wed May 4 21:15:28 2016 (r299088)
+++ head/sbin/fsck_msdosfs/boot.c Wed May 4 22:27:22 2016 (r299089)
@@ -221,7 +221,7 @@ readboot(int dosfs, struct bootblock *bo
break;
}
- if (boot->NumFatEntries < boot->NumClusters) {
+ if (boot->NumFatEntries < boot->NumClusters - CLUST_FIRST) {
pfatal("FAT size too small, %u entries won't fit into %u sectors\n",
boot->NumClusters, boot->FATsecs);
return FSFATAL;
More information about the svn-src-all
mailing list