Solomon Boulos has uploaded this change for review.

View Change

Implement SETATTR3!

This was the last bit of stuff to allow overwriting regular files, and probably
now it's time to start trying xfstests.

$ chmod +x proxy-mount/new.txt
boulos@ganesha-client:~$ ls -l proxy-mount/
total 8304
-rw-r--r-- 1 boulos boulos 3584000 Mar 5 23:11 bytes-again.txt
-rw-r--r-- 1 boulos boulos 3584000 Mar 4 23:50 bytes-copy.txt
-rw-r--r-- 1 boulos boulos 3584000 Mar 5 00:35 bytes-small.txt
-rw-r--r-- 1 boulos boulos 3584000 Mar 4 17:59 bytes.txt
-rw-r--r-- 1 boulos boulos 3584000 Mar 4 23:40 copied.txt
-rw-r--r-- 1 boulos boulos 16 Feb 15 00:15 hello.txt
-rwxr-xr-x 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

$ sudo chown root proxy-mount/new.txt
boulos@ganesha-client:~$ ls -l proxy-mount/
total 8304
-rw-r--r-- 1 boulos boulos 3584000 Mar 5 23:11 bytes-again.txt
-rw-r--r-- 1 boulos boulos 3584000 Mar 4 23:50 bytes-copy.txt
-rw-r--r-- 1 boulos boulos 3584000 Mar 5 00:35 bytes-small.txt
-rw-r--r-- 1 boulos boulos 3584000 Mar 4 17:59 bytes.txt
-rw-r--r-- 1 boulos boulos 3584000 Mar 4 23:40 copied.txt
-rw-r--r-- 1 boulos boulos 16 Feb 15 00:15 hello.txt
-rw-r--r-- 1 root 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

$ sudo chown boulos proxy-mount/new.txt
boulos@ganesha-client:~$ ls -l proxy-mount/
total 8304
-rw-r--r-- 1 boulos boulos 3584000 Mar 5 23:11 bytes-again.txt
-rw-r--r-- 1 boulos boulos 3584000 Mar 4 23:50 bytes-copy.txt
-rw-r--r-- 1 boulos boulos 3584000 Mar 5 00:35 bytes-small.txt
-rw-r--r-- 1 boulos boulos 3584000 Mar 4 17:59 bytes.txt
-rw-r--r-- 1 boulos boulos 3584000 Mar 4 23:40 copied.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
-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

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

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

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

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