From: Andrew Deason Date: Thu, 8 Apr 2010 17:15:34 +0000 (-0500) Subject: UKERNEL: Use real vnode type constants X-Git-Tag: openafs-devel-1_5_74~53 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=54b78ce087776342a4abb301fcb3fe8e58180621;p=packages%2Fo%2Fopenafs.git 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 --- diff --git a/src/afs/UKERNEL/sysincludes.h b/src/afs/UKERNEL/sysincludes.h index ff768a7df..dca066eec 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;