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
48fe919d3e
commit
281880ae8c
@ -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