UKERNEL: Use real vnode type constants

In UKERNEL, make VDIR be S_IFDIR, VREG be S_IFREG, etc. This makes
fakestat work correctly, since the va_mode of faked mountpoints are
OR'd with VDIR.

Change-Id: I7ac1dc7ae1d7cefade9bf92d8169db80977a5c76
Reviewed-on: http://gerrit.openafs.org/1718
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
Andrew Deason 2010-04-08 12:15:34 -05:00 committed by Derrick Brashear
parent d6345e8245
commit 54b78ce087

View File

@ -341,26 +341,18 @@ typedef long usr_ino_t;
#ifdef VFIFO
#undef VFIFO
#endif
#ifdef VDOOR
#undef VDOOR
#endif
#ifdef VBAD
#undef VBAD
#endif
#ifdef VSOCK
#undef VSOCK
#endif
#define VNON 0
#define VREG 1
#define VDIR 2
#define VBLK 3
#define VCHR 4
#define VLNK 5
#define VFIFO 6
#define VDOOR 7
#define VBAD 8
#define VSOCK 9
#define VNON 0
#define VREG S_IFREG
#define VDIR S_IFDIR
#define VBLK S_IFBLK
#define VCHR S_IFCHR
#define VLNK S_IFLNK
#define VSOCK S_IFSOCK
#define VFIFO S_IFIFO
typedef int usr_vtype_t;