mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 19:08:58 +00:00
MFC r299089:
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)
This commit is contained in:
parent
13e535d4ea
commit
7cdd755dfd
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=300099
@ -221,7 +221,7 @@ readboot(int dosfs, struct bootblock *boot)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user