summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1994-07-15 17:36:29 +0000
committerMichael I. Bushnell <mib@gnu.org>1994-07-15 17:36:29 +0000
commita05732092ba765f8310338141c2a6f7e69b98092 (patch)
treeee0b449173cc8d1789c77015dfba2639ec27b380
parent703d060f35cc5e4c8cf20d7bd6adfc44becdcbdd (diff)
entered into RCS
-rw-r--r--ufs/dinode.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ufs/dinode.h b/ufs/dinode.h
index 8f9dae0e..00be0d94 100644
--- a/ufs/dinode.h
+++ b/ufs/dinode.h
@@ -71,6 +71,14 @@
#define NDADDR 12 /* Direct addresses in inode. */
#define NIADDR 3 /* Indirect addresses in inode. */
+/* Maximum value of di_nlink field. */
+#define LINK_MAX 32767
+
+/* Indexes into di_ib */
+#define INDIR_SINGLE 0
+#define INDIR_DOUBLE 1
+#define INDIR_TRIPLE 2 /* NOT SUPPORTED */
+
struct dinode {
u_short di_model; /* 0: IFMT and permissions. */
short di_nlink; /* 2: File link count. */