From c65be2d304c67e57447d6d4a2e53fae07e31ff5c Mon Sep 17 00:00:00 2001 From: Shehjar Tikoo Date: Fri, 29 Oct 2010 05:38:13 +0000 Subject: nfs: Introduce nfs.enable-ino32 to support legacy 32-bit only apps Signed-off-by: Shehjar Tikoo Signed-off-by: Anand V. Avati BUG: 1972 (xcs get doesn't work with gNFS) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1972 --- xlators/nfs/server/src/nfs.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xlators/nfs/server/src/nfs.h') diff --git a/xlators/nfs/server/src/nfs.h b/xlators/nfs/server/src/nfs.h index 2464eb2b261..b6a1d4a46d3 100644 --- a/xlators/nfs/server/src/nfs.h +++ b/xlators/nfs/server/src/nfs.h @@ -72,10 +72,14 @@ struct nfs_state { xlator_t **initedxl; int subvols_started; int dynamicvolumes; + int enable_ino32; }; #define gf_nfs_dvm_on(nfsstt) (((struct nfs_state *)nfsstt)->dynamicvolumes == GF_NFS_DVM_ON) #define gf_nfs_dvm_off(nfsstt) (((struct nfs_state *)nfsstt)->dynamicvolumes == GF_NFS_DVM_OFF) +#define __gf_nfs_enable_ino32(nfsstt) (((struct nfs_state *)nfsstt)->enable_ino32) +#define gf_nfs_this_private ((struct nfs_state *)((xlator_t *)THIS)->private) +#define gf_nfs_enable_ino32() (__gf_nfs_enable_ino32(gf_nfs_this_private)) /* We have one gid more than the glusterfs maximum since we pass the primary * gid as the first element of the array. -- cgit