From 13fb54a37fad5244bf13c98425227c3fc6fcbec9 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Fri, 14 Oct 1994 02:52:31 +0000 Subject: Formerly pass4.c.~4~ --- ufs-fsck/pass4.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ufs-fsck/pass4.c b/ufs-fsck/pass4.c index 708674ca..e70fa411 100644 --- a/ufs-fsck/pass4.c +++ b/ufs-fsck/pass4.c @@ -18,11 +18,14 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ +#include "fsck.h" + +void pass4() { ino_t number; - for (number = ROOTINO; number < lastino; number++) + for (number = ROOTINO; number < maxino; number++) { if (linkfound[number] && inodestate[number] != UNALLOC) { @@ -31,7 +34,7 @@ pass4() struct dinode dino; getinode (number, &dino); pwarn ("LINK COUNT %s", - (DI_MODE (dp) & IFMT) == IFDIR ? "DIR" : "FILE"); + (DI_MODE (&dino) & IFMT) == IFDIR ? "DIR" : "FILE"); pinode (dino); printf (" COUNT %d SHOULD BE %d", linkcount[number], linkfound[number]); @@ -59,7 +62,7 @@ pass4() getinode (number, &dino); - if (dino.st_size) + if (dino.di_size) { /* This can't happen for dirctories because pass 3 should already have reset them up. */ -- cgit v1.2.3