Solomon Boulos has uploaded this change for review.

View Change

Implement SYMLINK.

$ ln -s code/hello.txt proxy-mount/my-first-link.txt
$ ls -l proxy-mount/
total 7032
-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
drwxr-xr-x 2 boulos boulos 4096 Mar 10 22:56 code
-rw-r--r-- 1 boulos boulos 16 Feb 15 00:15 hello.txt
lrwxrwxrwx 1 boulos boulos 14 Mar 10 23:05 my-first-link.txt -> code/hello.txt
drwxr-xr-x 2 boulos boulos 4096 Mar 10 17:40 newdir
-rw-r--r-- 1 boulos boulos 8 Mar 4 23:39 new.txt
drwxr-xr-x 2 boulos boulos 4096 Mar 10 17:30 sub
drwxr-xr-x 2 boulos boulos 4096 Mar 7 00:29 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

$ cat proxy-mount/my-first-link.txt
Hello, Ganesha!

I also took this opportunity to clean up the repeating nature of the "do an
NFSv3 RPC, get the results, see if we got back attributes, shove them into FSAL"
into a little helper that is used across CREATE3/MKDIR3/SYMLINK3 and presumably
will use it for MKNOD3 as well.

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

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

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

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