Solomon Boulos has uploaded this change for review.

View Change

Implement CREATE3 / FSAL open2().

This is just enough to create a file, but not to do the follow-up write nor
setattr. But I did successfully create a new empty file, and didn't segfault
when trying to overwrite it.

$ sudo mount -vvv -t nfs -o proto=tcp,vers=3 192.168.1.2:/testy ${HOME}/proxy-mount
$ echo "Bye bye" > proxy-mount/nope.txt
$ ls -l proxy-mount/
total 3516
-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 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

Change-Id: If7df70d3426e7a6f5a5780b6d904dacb6748bbc6
Signed-off-by: Solomon Boulos <boulos@google.com>
---
M src/FSAL/FSAL_PROXY_V3/main.c
M src/FSAL/FSAL_PROXY_V3/proxyv3_fsal_methods.h
M src/FSAL/FSAL_PROXY_V3/utils.c
3 files changed, 213 insertions(+), 2 deletions(-)

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

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

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