From Daniel Gryniewicz <dang(a)redhat.com>:
Daniel Gryniewicz has uploaded this change for review. (
https://review.gerrithub.io/420770
Change subject: Disallow client to create dirents with an empty name
......................................................................
Disallow client to create dirents with an empty name
NFSv4 spec forbids this, and Linux doesn't support it on local
filesystems, and it's caused problems with Gluster (which returns the
parent directory for an empty dirent name), so just protect against it.
Also, NFSv4 spec requires the error to be NFS4ERR_INVAL, not
NFS4ERR_BADNAME, so fix that as well.
Change-Id: Iebcc589ad3f131fd2a4ea500110550741eeb6d07
Signed-off-by: Daniel Gryniewicz <dang(a)redhat.com>
---
M src/FSAL/Stackable_FSALs/FSAL_MDCACHE/mdcache_helpers.c
M src/FSAL/fsal_helper.c
2 files changed, 10 insertions(+), 2 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/70/420770/1
--
To view, visit
https://review.gerrithub.io/420770
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iebcc589ad3f131fd2a4ea500110550741eeb6d07
Gerrit-Change-Number: 420770
Gerrit-PatchSet: 1
Gerrit-Owner: Daniel Gryniewicz <dang(a)redhat.com>