if the user specifies both -b and -p, then just go ahead and update
the primary superblock.
This commit is contained in:
parent
7ca9a9ac30
commit
e23f416c6b
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: utilities.c,v 1.43 2004/01/09 19:12:31 dbj Exp $ */
|
||||
/* $NetBSD: utilities.c,v 1.44 2004/01/15 14:49:28 dbj Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1986, 1993
|
||||
@ -34,7 +34,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)utilities.c 8.6 (Berkeley) 5/19/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: utilities.c,v 1.43 2004/01/09 19:12:31 dbj Exp $");
|
||||
__RCSID("$NetBSD: utilities.c,v 1.44 2004/01/15 14:49:28 dbj Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -276,7 +276,9 @@ ckfini()
|
||||
}
|
||||
flush(fswritefd, &sblk);
|
||||
if (havesb && bflag != 0 &&
|
||||
!preen && reply("UPDATE STANDARD SUPERBLOCK")) {
|
||||
(preen || reply("UPDATE STANDARD SUPERBLOCK"))) {
|
||||
if (preen)
|
||||
pwarn("UPDATING STANDARD SUPERBLOCK");
|
||||
if (!is_ufs2 && (sblock->fs_old_flags & FS_FLAGS_UPDATED) == 0)
|
||||
sblk.b_bno = SBLOCK_UFS1 / dev_bsize;
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user