diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-10-12 19:07:09 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-10-12 19:07:09 +0000 |
commit | 6853065d2555a7fb3bdab5162804aa6133c4f0a4 (patch) | |
tree | 87d129b66c4db314b46167fd251f10478aa28b1a /ufs-fsck | |
parent | 686c0f5782d0d71acef2d87dc636d7577d7bb559 (diff) |
Formerly pass2.c.~4~
Diffstat (limited to 'ufs-fsck')
-rw-r--r-- | ufs-fsck/pass2.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ufs-fsck/pass2.c b/ufs-fsck/pass2.c index ee1d09df..f3353325 100644 --- a/ufs-fsck/pass2.c +++ b/ufs-fsck/pass2.c @@ -44,7 +44,7 @@ pass2 () for (dp = buf; (void *)dp - buf < DIRBLKSIZ; - dp = (struct directory_entry *) ((void *) dp + dp->d_reclen)) + dp = (struct directory_entry *) ((void *)dp + dp->d_reclen)) { /* Check RECLEN for basic validity */ if (dp->d_reclen == 0 @@ -163,8 +163,9 @@ pass2 () } /* Called for each filesystem block of the directory. Load BNO - into core and then call CHECK1BLOCK for each DIRBLKSIZ chunk. */ - void + into core and then call CHECK1BLOCK for each DIRBLKSIZ chunk. + Always return 1. */ + int checkdirblock (daddr_t bno, int nfrags) { void *buf = alloca (nfrags * sblock->fs_fsize); @@ -182,6 +183,7 @@ pass2 () } if (rewrite) writeblock (fsbtodb (bno), buf, fsbtodb (nfrags)); + return 1; } switch (statemap [ROOTINO]) |