From 6d6f2688ab88c1a69e6068479edc2f88618c2be1 Mon Sep 17 00:00:00 2001 From: Jan-Simon Pendry Date: Thu, 11 Aug 1994 06:54:39 -0800 Subject: [PATCH] add whiteout inode number SCCS-vsn: sys/ufs/ufs/dinode.h 8.5 --- usr/src/sys/ufs/ufs/dinode.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/usr/src/sys/ufs/ufs/dinode.h b/usr/src/sys/ufs/ufs/dinode.h index 4553690089..f754910c19 100644 --- a/usr/src/sys/ufs/ufs/dinode.h +++ b/usr/src/sys/ufs/ufs/dinode.h @@ -9,7 +9,7 @@ * * %sccs.include.redist.c% * - * @(#)dinode.h 8.4 (Berkeley) %G% + * @(#)dinode.h 8.5 (Berkeley) %G% */ /* @@ -20,6 +20,14 @@ */ #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. -- 2.20.1