Date: Fri, 28 Apr 2017 13:13:23 +0000 (UTC) From: Rick Macklem <rmacklem@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r317552 - projects/pnfs-planb-server/sys/fs/nfs Message-ID: <201704281313.v3SDDNU3062875@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: rmacklem Date: Fri Apr 28 13:13:23 2017 New Revision: 317552 URL: https://svnweb.freebsd.org/changeset/base/317552 Log: Add #if _KERNEL macros to nfsproto.h so it can be included easily in userland. This allows it to be included in nfsd.c. Modified: projects/pnfs-planb-server/sys/fs/nfs/nfsproto.h Modified: projects/pnfs-planb-server/sys/fs/nfs/nfsproto.h ============================================================================== --- projects/pnfs-planb-server/sys/fs/nfs/nfsproto.h Fri Apr 28 12:12:24 2017 (r317551) +++ projects/pnfs-planb-server/sys/fs/nfs/nfsproto.h Fri Apr 28 13:13:23 2017 (r317552) @@ -653,6 +653,7 @@ #define NFSFLAYUTIL_COMMIT_THRU_MDS 0x2 #define NFSFLAYUTIL_STRIPE_MASK 0xffffffc0 +#if defined(_KERNEL) || defined(KERNEL) /* Conversion macros */ #define vtonfsv2_mode(t,m) \ txdr_unsigned(((t) == VFIFO) ? MAKEIMODE(VCHR, (m)) : \ @@ -802,6 +803,7 @@ struct nfsv3_sattr { u_int32_t sa_mtimetype; nfstime3 sa_mtime; }; +#endif /* _KERNEL */ /* * The attribute bits used for V4.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704281313.v3SDDNU3062875>