Change in ...nfs-ganesha[next]: NFS: convert LISTXATTRS
by Jeff Layton (GerritHub)
Jeff Layton has uploaded this change for review. ( https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/511986 )
Change subject: NFS: convert LISTXATTRS
......................................................................
NFS: convert LISTXATTRS
Convert the LISTXATTRS code to convert with RFC8276. Note that we also
change the listxattrs API a bit. The old code had nfs4_op_listxattr
allocate a (largeish) array based on an estimate using the maxcount
passed in by the client. That covered most reasonable cases, but might
not have worked well at the edges, and it was a bit odd in that the FSAL
still had to allocate the char arrays for utf8string_val.
The new API passes in a pointer to a zeroed out xattrlist4 that the FSAL
must fill out itself. The FSAL can then allocate an array that is
correctly sized, based on the xattrs it finds and the args from the
client.
Change-Id: I6b742dc04f6ae9fc434bd1bdcdaff04e8b8109ea
Signed-off-by: Jeff Layton <jlayton(a)redhat.com>
---
M src/FSAL/FSAL_GLUSTER/handle.c
M src/FSAL/FSAL_GPFS/handle.c
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_int.h
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_xattrs.c
M src/FSAL/default_methods.c
M src/Protocols/NFS/nfs4_op_xattr.c
M src/include/fsal_api.h
M src/include/nfsv41.h
8 files changed, 75 insertions(+), 111 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/86/511986/1
--
To view, visit https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/511986
To unsubscribe, or for help writing mail filters, visit https://review.gerrithub.io/settings
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I6b742dc04f6ae9fc434bd1bdcdaff04e8b8109ea
Gerrit-Change-Number: 511986
Gerrit-PatchSet: 1
Gerrit-Owner: Jeff Layton <jlayton(a)redhat.com>
Gerrit-MessageType: newchange