summaryrefslogtreecommitdiff
path: root/ufs-fsck
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-10-18 00:34:14 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-10-18 00:34:14 +0000
commit144a7ab1dc7bddf1094d9721dd794347b6900fd3 (patch)
tree36f1eeb2a9f08cea1dec9fb0e0558a04dbdc07dd /ufs-fsck
parent00552f61785b5f751008e2899182e73541af1b20 (diff)
entered into RCS
Diffstat (limited to 'ufs-fsck')
-rw-r--r--ufs-fsck/fsck.h19
-rw-r--r--ufs-fsck/pass1b.c2
2 files changed, 9 insertions, 12 deletions
diff --git a/ufs-fsck/fsck.h b/ufs-fsck/fsck.h
index 2c72d46f..ca8f2dfd 100644
--- a/ufs-fsck/fsck.h
+++ b/ufs-fsck/fsck.h
@@ -30,19 +30,16 @@
#include "../ufs/dir.h"
/* Type of an inode */
-enum inodetype
-{
- UNALLOC, /* not allocated */
- REG, /* allocated, not dir */
- DIRECTORY, /* dir */
- BADDIR, /* dir with bad block pointers */
-};
+#define UNALLOC 0
+#define REG 1
+#define DIRECTORY 2
+#define BADDIR 3
/* Added to directories in pass 2 */
-#define DIR_REF 0x80000000 /* dir has been found in connectivity search */
+#define DIR_REF 4 /* dir has been found in connectivity search */
/* State of each inode (set by pass 1) */
-enum inodetype *inodestate;
+char *inodestate;
/* Number of links claimed by each inode (set by pass 1) */
nlink_t *linkcount;
@@ -160,8 +157,8 @@ int changeino (ino_t, char *, ino_t);
int linkup (ino_t, ino_t);
-void datablocks_iterate (struct dinode *, int (*)(daddr_t, int));
-void allblock_iterate (struct dinode *, int (*)(daddr_t, int));
+void datablocks_iterate (struct dinode *, int (*)(daddr_t, int, off_t));
+void allblock_iterate (struct dinode *, int (*)(daddr_t, int, off_t));
void record_directory (struct dinode *, ino_t);
diff --git a/ufs-fsck/pass1b.c b/ufs-fsck/pass1b.c
index ac6c299f..50973eae 100644
--- a/ufs-fsck/pass1b.c
+++ b/ufs-fsck/pass1b.c
@@ -35,7 +35,7 @@ pass1b ()
Return RET_GOOD or RET_BAD if the block is
good or bad, respectively. */
int
- checkblock (daddr_t bno, int nfrags)
+ checkblock (daddr_t bno, int nfrags, off_t offset)
{
struct dups *dlp;
int hadbad = 0;