summaryrefslogtreecommitdiff
path: root/ufs-fsck/fsck.h
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/fsck.h
parent00552f61785b5f751008e2899182e73541af1b20 (diff)
entered into RCS
Diffstat (limited to 'ufs-fsck/fsck.h')
-rw-r--r--ufs-fsck/fsck.h19
1 files changed, 8 insertions, 11 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);