Solomon Boulos has uploaded this change for review.

View Change

Respect config parameters for mount path and server.

With this change, the proxy can now correctly be pointed at whatever server
(including IPv6 in theory) and mount point you want. The main cleanups are in
the socket parsing and creation code.

No more kFilestoreHost!

When pointed at my old filestore instance:

$ sudo mount -vvv -t nfs -o proto=tcp,vers=3 192.168.1.2:/testy ${HOME}/proxy-mount
$ ls proxy-mount/
lost+found proxyv3_ganesha.conf

and now a different (expected) outcome by proxying the more built up knfsd:

$ sudo mount -vvv -t nfs -o proto=tcp,vers=3 192.168.1.2:/testy ${HOME}/proxy-mount
$ ls proxy-mount/
bytes-again.txt bytes-small.txt copied.txt new.txt subdir yo.txt
bytes-copy.txt bytes.txt hello.txt nope.txt woohoo.txt

Change-Id: I952554a190dbc82eb2d45b9b013086ed4843e60e
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/rpc.c
3 files changed, 165 insertions(+), 45 deletions(-)

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

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

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