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 #ifdef VFIFO
#undef VFIFO #undef VFIFO
#endif #endif
#ifdef VDOOR
#undef VDOOR
#endif
#ifdef VBAD
#undef VBAD
#endif
#ifdef VSOCK #ifdef VSOCK
#undef VSOCK #undef VSOCK
#endif #endif
#define VNON 0 #define VNON 0
#define VREG 1 #define VREG S_IFREG
#define VDIR 2 #define VDIR S_IFDIR
#define VBLK 3 #define VBLK S_IFBLK
#define VCHR 4 #define VCHR S_IFCHR
#define VLNK 5 #define VLNK S_IFLNK
#define VFIFO 6 #define VSOCK S_IFSOCK
#define VDOOR 7 #define VFIFO S_IFIFO
#define VBAD 8
#define VSOCK 9
typedef int usr_vtype_t; typedef int usr_vtype_t;