Remove some additional paranoia which Kirk forgot to remove from his

UFS2 commit.

These bits in essence made any instance of "softupdates expected
corrution", (ie blocks marked allocated but not referenced by an
inode etc) result in a exit value for fsck_ffs of 2.

2 is part of the magic and appearantly undocumented protocol between
fsck_FOO and fsck and means "dump into single user mode ASAP.

Sponsored by:	DARPA & NAI Labs.
This commit is contained in:
phk 2002-07-30 20:49:29 +00:00
parent 14df04dfaf
commit 1c53888a98
2 changed files with 2 additions and 4 deletions

View File

@ -7,7 +7,8 @@ LINKS+= ${BINDIR}/fsck_ffs ${BINDIR}/fsck_4.2bsd
MAN= fsck_ffs.8
SRCS= dir.c fsutil.c inode.c main.c pass1.c pass1b.c pass2.c pass3.c pass4.c \
pass5.c setup.c utilities.c ffs_subr.c ffs_tables.c
WARNS= 0
WARNS= 2
CFLAGS+= -I${.CURDIR}
.PATH: ${.CURDIR}/../../sys/ufs/ffs

View File

@ -382,7 +382,6 @@ check_maps(
aend = n;
continue;
}
returntosingle = 1;
if (astart == aend)
(*msg)("ALLOCATED %s %d MARKED FREE\n",
name, astart);
@ -419,7 +418,6 @@ check_maps(
pwarn("%s %sS %d-%ld MARKED USED\n",
"UNALLOCATED", name, ustart,
ustart + size - 1);
returntosingle = 1;
if (bkgrdflag != 0) {
cmd.value = ustart;
cmd.size = size;
@ -462,7 +460,6 @@ check_maps(
pwarn("UNALLOCATED %sS %d-%ld MARKED USED\n",
name, ustart, ustart + size - 1);
}
returntosingle = 1;
if (bkgrdflag != 0) {
cmd.value = ustart;
cmd.size = size;