From 54b78ce087776342a4abb301fcb3fe8e58180621 Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Thu, 8 Apr 2010 12:15:34 -0500 Subject: [PATCH] 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 Tested-by: Derrick Brashear --- src/afs/UKERNEL/sysincludes.h | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/src/afs/UKERNEL/sysincludes.h b/src/afs/UKERNEL/sysincludes.h index ff768a7dfc..dca066eec9 100644 --- a/src/afs/UKERNEL/sysincludes.h +++ b/src/afs/UKERNEL/sysincludes.h @@ -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;