Solomon Boulos has uploaded this change for review.

View Change

Handle RMDIR3 requests (part of unlink)

Didn't realize that unlink in FSAL also handles rmdir requests (which are nearly
identical, so lots of ternary ops).

Before:

$ ls -l proxy-mount/
total 7024
-rw-r--r-- 1 boulos boulos 3584000 Mar 5 23:11 bytes-again.txt
-rw-r--r-- 1 boulos boulos 3584000 Mar 4 17:59 bytes.txt
-rw-r--r-- 1 boulos boulos 16 Feb 15 00:15 hello.txt
drwxrwx--- 2 boulos boulos 4096 Mar 6 18:08 new-dir
-rw-r--r-- 1 boulos boulos 8 Mar 4 23:39 new.txt
-rw-r--r-- 1 boulos boulos 0 Mar 4 22:58 nope.txt
drwxr-xr-x 2 boulos boulos 4096 Feb 22 18:12 subdir
-rw-r--r-- 1 boulos boulos 8 Feb 26 02:35 woohoo.txt
-rw-r--r-- 1 boulos boulos 11 Feb 15 00:15 yo.txt

After:
$ rmdir proxy-mount/new-dir
$ ls -l proxy-mount/
total 7020
-rw-r--r-- 1 boulos boulos 3584000 Mar 5 23:11 bytes-again.txt
-rw-r--r-- 1 boulos boulos 3584000 Mar 4 17:59 bytes.txt
-rw-r--r-- 1 boulos boulos 16 Feb 15 00:15 hello.txt
-rw-r--r-- 1 boulos boulos 8 Mar 4 23:39 new.txt
drwxr-xr-x 2 boulos boulos 4096 Feb 22 18:12 subdir
-rw-r--r-- 1 boulos boulos 8 Feb 26 02:35 woohoo.txt
-rw-r--r-- 1 boulos boulos 11 Feb 15 00:15 yo.txt

Change-Id: I30689801b4221d217b40a6a6aefd6fad0d797621
Signed-off-by: Solomon Boulos <boulos@google.com>
---
M src/FSAL/FSAL_PROXY_V3/main.c
1 file changed, 36 insertions(+), 15 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/56/487456/1

To view, visit change 487456. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: I30689801b4221d217b40a6a6aefd6fad0d797621
Gerrit-Change-Number: 487456
Gerrit-PatchSet: 1
Gerrit-Owner: Solomon Boulos <boulos@google.com>
Gerrit-MessageType: newchange