Don't require ffsv2 suberblocks to have FS_FLAGS_UPDATED set

This commit is contained in:
dsl 2004-03-27 12:52:16 +00:00
parent abb3201747
commit 33599967f2
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: badsect.c,v 1.26 2004/03/21 19:13:59 dsl Exp $ */ /* $NetBSD: badsect.c,v 1.27 2004/03/27 12:52:16 dsl Exp $ */
/* /*
* Copyright (c) 1981, 1983, 1993 * Copyright (c) 1981, 1983, 1993
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1981, 1983, 1993\n\
#if 0 #if 0
static char sccsid[] = "@(#)badsect.c 8.2 (Berkeley) 5/4/95"; static char sccsid[] = "@(#)badsect.c 8.2 (Berkeley) 5/4/95";
#else #else
__RCSID("$NetBSD: badsect.c,v 1.26 2004/03/21 19:13:59 dsl Exp $"); __RCSID("$NetBSD: badsect.c,v 1.27 2004/03/27 12:52:16 dsl Exp $");
#endif #endif
#endif /* not lint */ #endif /* not lint */
@ -173,7 +173,7 @@ main(argc, argv)
} }
/* Ensure we don't use 1st alternate if ffsv1 and bs=64k */ /* Ensure we don't use 1st alternate if ffsv1 and bs=64k */
if (fs->fs_old_flags & FS_FLAGS_UPDATED) { if (is_ufs2 || fs->fs_old_flags & FS_FLAGS_UPDATED) {
if (fs->fs_sblockloc != sblock_try[i]) if (fs->fs_sblockloc != sblock_try[i])
continue; continue;
} else { } else {