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:
mckusick 2002-10-10 00:50:56 +00:00
parent 48fe919d3e
commit 281880ae8c

View File

@ -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;
}