diff options
author | mckusick <mckusick@FreeBSD.org> | 2002-10-10 00:50:56 +0000 |
---|---|---|
committer | mckusick <mckusick@FreeBSD.org> | 2002-10-10 00:50:56 +0000 |
commit | 281880ae8c18d8b05dd1d75d9342b02147166691 (patch) | |
tree | aa82d90276407dccf78bd4fae56e64609afb6543 /sbin/fsck_ffs | |
parent | 48fe919d3ecd865708d90eafef25d61f416605f5 (diff) | |
download | FreeBSD-src-281880ae8c18d8b05dd1d75d9342b02147166691.zip FreeBSD-src-281880ae8c18d8b05dd1d75d9342b02147166691.tar.gz |
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.
Diffstat (limited to 'sbin/fsck_ffs')
-rw-r--r-- | sbin/fsck_ffs/setup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsck_ffs/setup.c b/sbin/fsck_ffs/setup.c index db3fc3f..db9feb0 100644 --- a/sbin/fsck_ffs/setup.c +++ b/sbin/fsck_ffs/setup.c @@ -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; } |