From d778309abd38fcd6a240448606192b9ef3411565 Mon Sep 17 00:00:00 2001 From: "J. Bruce Fields" Date: Mon, 14 Dec 2009 17:07:19 -0500 Subject: 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 --- support/include/nfs/export.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'support/include/nfs/export.h') 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 */ -- cgit