When verifying a superblock, the lower bound on block size is MINBSIZE
(4096), not SBLOCKSIZE (8192). Submitted by: Tor.Egge@cvsup.no.freebsd.org Sponsored by: DARPA & NAI Labs.
This commit is contained in:
parent
9e9715e9c0
commit
1546eccd21
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104745
@ -316,7 +316,7 @@ readsb(int listerr)
|
||||
sblock.fs_sblockloc ==
|
||||
numfrags(&sblock, sblock_try[i]))) &&
|
||||
sblock.fs_ncg >= 1 &&
|
||||
sblock.fs_bsize >= SBLOCKSIZE &&
|
||||
sblock.fs_bsize >= MINBSIZE &&
|
||||
sblock.fs_bsize >= sizeof(struct fs))
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user