>From Sriram Patil <srir...@vmware.com>:
Sriram Patil has uploaded this change for review. (
https://review.gerrithub.io/404246
Change subject: Fixes to allow VFS subfsals to control referrals
......................................................................
Fixes to allow VFS subfsals to control referrals
Added fs_locations into attrlist. fs locations are ref counted and have
a new trust flag (MDCACHE_TRUST_FS_LOCATIONS). fs locations are not
populated as part of getattrs implementation. This is delegated to
subfsal through subfsal getattrs implementation. Added a separate file
(subfsal_helpers.c), which implements the current fs locations logic,
this can be used by subfsals if required or can write its own.
Removed fs_locations FSAL API. Now that the fs_locations are in
attrlist, the API is not longer required. This changes the
imeplementation of encode_fs_locations.
Change FSAL_GPFS to use new FSAL API is_referral and removed
fs_locations implementation.
Note: This fix does not cache negative results for fs locations in
mdcache
Change-Id: I2df580ee3d3a2c436b567a1ea1d5dbe3d408889d
Testing: pynfs (all and fslocations), cthon on vfs mounts
Signed-off-by: Sriram Patil <srir...@vmware.com>
---
M src/FSAL/FSAL_GPFS/handle.c
M src/FSAL/FSAL_VFS/handle.c
A src/FSAL/FSAL_VFS/subfsal_helpers.c
M src/FSAL/FSAL_VFS/vfs/CMakeLists.txt
M src/FSAL/FSAL_VFS/vfs/attrs.c
M src/FSAL/FSAL_VFS/vfs/main-c.in.cmake
M src/FSAL/FSAL_VFS/vfs/subfsal_vfs.c
M src/FSAL/FSAL_VFS/vfs_methods.h
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_handle.c
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_helpers.c
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_int.h
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_up.c
M src/FSAL/default_methods.c
M src/Protocols/NFS/nfs4_Compound.c
M src/Protocols/NFS/nfs4_op_getattr.c
M src/Protocols/NFS/nfs4_op_readdir.c
M src/Protocols/NFS/nfs_proto_tools.c
M src/include/fsal.h
M src/include/fsal_api.h
M src/include/fsal_types.h
M src/include/fsal_up.h
A src/include/nfs4_fs_locations.h
M src/include/nfs_proto_tools.h
M src/support/CMakeLists.txt
A src/support/nfs4_fs_locations.c
25 files changed, 507 insertions(+), 305 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha
refs/changes/46/404246/1
--
To view, visit https://review.gerrithub.io/404246
To unsubscribe, visit https://review.gerrithub.io/settings
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2df580ee3d3a2c436b567a1ea1d5dbe3d408889d
Gerrit-Change-Number: 404246
Gerrit-PatchSet: 1
Gerrit-Owner: Sriram Patil <srir...@vmware.com>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel