>From Gui Hecheng <guim...@126.com>:

Gui Hecheng has uploaded a new change for review. ( 
https://review.gerrithub.io/347789


Change subject: FSAL_RGW: fix mount failure of nfs v3 on windows
......................................................................

FSAL_RGW: fix mount failure of nfs v3 on windows

When we tried to mount rgwfs on windows using nfsv3, it failed with
a not found errcode 53:
        > mount \\<IP>\mybucket x:\
It is because win client pass a "/mybucket" for export dir, but
ganesha is exporting the desired dir as "mybucket"(without slash)
        # showmount -e
        Export list for <myhost>:
        mybucket               (everyone)
so ganesha could not serve.

Here we export rgwfs with config "Path = mybucket".
We shall fail to export if provided "Path = /mybucket", because
FSAL_RGW directly pass "/mybucket" to librgw as parameter 'path',
which will be digested as a bucket name by librgw.

Actually librgw would like a relative path as a bucket name, then
we could export with config "Path = /mybucket"(with slash) which
will make nfs client succeed to mount on windows.

Change-Id: I02c241b12d77a747e8b039c5ac3a0662351011c9
Signed-off-by: Gui Hecheng <guihech...@cmss.chinamobile.com>
---
M src/FSAL/FSAL_RGW/export.c
1 file changed, 12 insertions(+), 2 deletions(-)



  git pull ssh://review.gerrithub.io:29419/ffilz/nfs-ganesha 
refs/changes/89/347789/1
-- 
To view, visit https://review.gerrithub.io/347789
To unsubscribe, visit https://review.gerrithub.io/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I02c241b12d77a747e8b039c5ac3a0662351011c9
Gerrit-Change-Number: 347789
Gerrit-PatchSet: 1
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Owner: Gui Hecheng <guim...@126.com>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Nfs-ganesha-devel mailing list
Nfs-ganesha-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs-ganesha-devel

Reply via email to