summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-05-02 01:04:10 +0000
committerMiles Bader <miles@gnu.org>1996-05-02 01:04:10 +0000
commitac37bbf5afbde9c100964d42a40b77c9df5b8829 (patch)
treec60054edbeb8a6417746505d4e7b6e8685d27504
parent71c04b07dab6af1b537d7ccf61a3555e525802d9 (diff)
(pass4): Use new printing functions.
-rw-r--r--ufs-fsck/pass4.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/ufs-fsck/pass4.c b/ufs-fsck/pass4.c
index bd1c7541..3f5c26cc 100644
--- a/ufs-fsck/pass4.c
+++ b/ufs-fsck/pass4.c
@@ -1,5 +1,5 @@
/* Pass 4 of GNU fsck -- Check reference counts
- Copyright (C) 1994 Free Software Foundation, Inc.
+ Copyright (C) 1994, 1996 Free Software Foundation, Inc.
Written by Michael I. Bushnell.
This file is part of the GNU Hurd.
@@ -33,7 +33,8 @@ pass4()
{
if (linkcount[number] != linkfound[number])
{
- pinode (number, "LINK COUNT %d SHOULD BE %d IN",
+ pinode (0, number,
+ "LINK COUNT %d SHOULD BE %d IN",
linkcount[number], linkfound[number]);
if (preen || reply ("ADJUST"))
{
@@ -43,6 +44,8 @@ pass4()
write_inode (number, &dino);
pfix ("ADJUSTED");
}
+ else
+ pfail (0);
}
}
else if (linkfound[number] && inodestate[number] == UNALLOC)
@@ -58,7 +61,7 @@ pass4()
want to reattach in. */
struct dinode dino;
- pinode (number, "UNREF");
+ pinode (0, number, "UNREF");
getinode (number, &dino);
if (dino.di_size && !reconn_failed)
@@ -72,6 +75,8 @@ pass4()
reconn_failed = !linkup (number, -1);
if (!reconn_failed)
pfix ("RECONNECTED");
+ else
+ pfail ("FAILED");
}
if (dino.di_size == 0 || reconn_failed)
{
@@ -79,8 +84,10 @@ pass4()
{
inodestate[number] = UNALLOC;
clear_inode (number, &dino);
+ pfix ("CLEARED");
}
- pfix ("CLEARED");
+ else
+ pfail (0);
}
}
}