add whiteout inode number
authorJan-Simon Pendry <pendry@ucbvax.Berkeley.EDU>
Thu, 11 Aug 1994 14:54:39 +0000 (06:54 -0800)
committerJan-Simon Pendry <pendry@ucbvax.Berkeley.EDU>
Thu, 11 Aug 1994 14:54:39 +0000 (06:54 -0800)
SCCS-vsn: sys/ufs/ufs/dinode.h 8.5

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.