summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-02-09 15:58:31 +0000
committerbde <bde@FreeBSD.org>1995-02-09 15:58:31 +0000
commit5c099a964cd841f148168497cd77214c6f443fd0 (patch)
treee6730a317a1d2544c8d5529b13f7ae99c550d816
parent2daabec736fa0377716858bb92275d90386970c3 (diff)
downloadFreeBSD-src-5c099a964cd841f148168497cd77214c6f443fd0.zip
FreeBSD-src-5c099a964cd841f148168497cd77214c6f443fd0.tar.gz
Don't allow the alternate superblock block number for one file system
to apply to others (except when it is given on the command line).
-rw-r--r--sbin/fsck/setup.c2
-rw-r--r--sbin/fsck_ffs/setup.c2
-rw-r--r--sbin/fsck_ifs/setup.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/sbin/fsck/setup.c b/sbin/fsck/setup.c
index a32b23c..fb1c1d9 100644
--- a/sbin/fsck/setup.c
+++ b/sbin/fsck/setup.c
@@ -124,9 +124,11 @@ setup(dev)
"LOCATION OF AN ALTERNATE",
"SUPER-BLOCK TO SUPPLY NEEDED",
"INFORMATION; SEE fsck(8).");
+ bflag = 0;
return(0);
}
pwarn("USING ALTERNATE SUPERBLOCK AT %d\n", bflag);
+ bflag = 0;
}
maxfsblock = sblock.fs_size;
maxino = sblock.fs_ncg * sblock.fs_ipg;
diff --git a/sbin/fsck_ffs/setup.c b/sbin/fsck_ffs/setup.c
index a32b23c..fb1c1d9 100644
--- a/sbin/fsck_ffs/setup.c
+++ b/sbin/fsck_ffs/setup.c
@@ -124,9 +124,11 @@ setup(dev)
"LOCATION OF AN ALTERNATE",
"SUPER-BLOCK TO SUPPLY NEEDED",
"INFORMATION; SEE fsck(8).");
+ bflag = 0;
return(0);
}
pwarn("USING ALTERNATE SUPERBLOCK AT %d\n", bflag);
+ bflag = 0;
}
maxfsblock = sblock.fs_size;
maxino = sblock.fs_ncg * sblock.fs_ipg;
diff --git a/sbin/fsck_ifs/setup.c b/sbin/fsck_ifs/setup.c
index a32b23c..fb1c1d9 100644
--- a/sbin/fsck_ifs/setup.c
+++ b/sbin/fsck_ifs/setup.c
@@ -124,9 +124,11 @@ setup(dev)
"LOCATION OF AN ALTERNATE",
"SUPER-BLOCK TO SUPPLY NEEDED",
"INFORMATION; SEE fsck(8).");
+ bflag = 0;
return(0);
}
pwarn("USING ALTERNATE SUPERBLOCK AT %d\n", bflag);
+ bflag = 0;
}
maxfsblock = sblock.fs_size;
maxino = sblock.fs_ncg * sblock.fs_ipg;
OpenPOWER on IntegriCloud