add whiteout inode number
[unix-history] / usr / src / sys / ufs / ufs / dinode.h
index 4553690..f754910 100644 (file)
@@ -9,7 +9,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)dinode.h    8.4 (Berkeley) %G%
+ *     @(#)dinode.h    8.5 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
  */
 #define        ROOTINO ((ino_t)2)
 
  */
 #define        ROOTINO ((ino_t)2)
 
+/*
+ * The Whiteout inode# is a dummy non-zero inode number which will
+ * never be allocated to a real file.  It is used as a place holder
+ * in the directory entry which has been tagged as a DT_W entry.
+ * See the comments about ROOTINO above.
+ */
+#define        WINO    ((ino_t)1)
+
 /*
  * A dinode contains all the meta-data associated with a UFS file.
  * This structure defines the on-disk format of a dinode.
 /*
  * A dinode contains all the meta-data associated with a UFS file.
  * This structure defines the on-disk format of a dinode.