Daniel Gryniewicz has uploaded this change for review.
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@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 change 420770. To unsubscribe, or for help writing mail filters, visit settings.