diff options
author | Miles Bader <miles@gnu.org> | 1996-05-02 01:04:10 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1996-05-02 01:04:10 +0000 |
commit | cc258b15076b5f18aae0bf1a633e1c9c2cb318b7 (patch) | |
tree | 964f0875cb51adc99e3bd918f2f4156d4d782dbe /ufs-fsck | |
parent | 537bd01195f5bb1c550a089a021cd9b2ea1cc90b (diff) |
(pass4): Use new printing functions.
Diffstat (limited to 'ufs-fsck')
-rw-r--r-- | ufs-fsck/pass4.c | 15 |
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); } } } |