diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2009-12-14 17:07:19 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2010-01-13 15:39:14 -0500 |
commit | d778309abd38fcd6a240448606192b9ef3411565 (patch) | |
tree | c07979cf6f7feed37c7ba1f9bb88aa2262e69291 /support/include/nfs/export.h | |
parent | f783ec6a999e424054ccab773e7c6ba6b38eb1fe (diff) | |
download | nfs-utils-d778309abd38fcd6a240448606192b9ef3411565.tar.gz nfs-utils-d778309abd38fcd6a240448606192b9ef3411565.tar.xz nfs-utils-d778309abd38fcd6a240448606192b9ef3411565.zip |
exports: let kernel decide which flags vary by flavor
Query the kernel to ask which flavors vary by pseudoflavor, and use that
instead of a fixed constant. To allow the possibility of more flags
varying by pseudoflavor, use the set/clear_flags functions for all
options instead of setting some by hand.
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Diffstat (limited to 'support/include/nfs/export.h')
-rw-r--r-- | support/include/nfs/export.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/support/include/nfs/export.h b/support/include/nfs/export.h index f7a99ba..d3e188c 100644 --- a/support/include/nfs/export.h +++ b/support/include/nfs/export.h @@ -24,6 +24,16 @@ #define NFSEXP_FSID 0x2000 #define NFSEXP_CROSSMOUNT 0x4000 #define NFSEXP_NOACL 0x8000 /* reserved for possible ACL related use */ -#define NFSEXP_ALLFLAGS 0xFFFF +/* + * All flags supported by the kernel before addition of the + * export_features interface: + */ +#define NFSEXP_OLDFLAGS 0x7E3F +/* + * Flags that can vary per flavor, for kernels before addition of the + * export_features interface: + */ +#define NFSEXP_OLD_SECINFO_FLAGS (NFSEXP_READONLY | NFSEXP_ROOTSQUASH \ + | NFSEXP_ALLSQUASH) #endif /* _NSF_EXPORT_H */ |