diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-10-14 02:52:31 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-10-14 02:52:31 +0000 |
commit | 56d9814fc90633a8d09d5212179a34c14c6f5835 (patch) | |
tree | aabe80808df50b6a85264613aa84af45763b5f89 /ufs-fsck/pass4.c | |
parent | d4c8209635a6d104f643139aa0f8436a627bed2e (diff) |
Formerly pass4.c.~4~
Diffstat (limited to 'ufs-fsck/pass4.c')
-rw-r--r-- | ufs-fsck/pass4.c | 9 |
1 files 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. */ |