[Bugs] [Bug 1157223] New: nfs mount via symbolic link does not work

bugzilla at redhat.com bugzilla at redhat.com
Sun Oct 26 10:25:07 UTC 2014


https://bugzilla.redhat.com/show_bug.cgi?id=1157223

            Bug ID: 1157223
           Summary: nfs mount via symbolic link does not work
           Product: GlusterFS
           Version: mainline
         Component: nfs
          Keywords: FutureFeature, Triaged
          Assignee: bugs at gluster.org
          Reporter: ndevos at redhat.com
                CC: albert.hayr at kapsch.net, bugs at gluster.org,
                    gluster-bugs at redhat.com, jiademing.dd at gmail.com,
                    ndevos at redhat.com, rcyriac at redhat.com,
                    skoduri at redhat.com, vagarwal at redhat.com
            Blocks: 991300, 1021998



+++ This bug was initially created as a clone of Bug #1021998 +++
+++                                                           +++
+++ Use this bug to post patches to the master branch.        +++

Description of problem:

We are using the function to export all sub-directories in a gluster volume via
nfs. For real directories it works fine but if we have a symbolic link which
points to the directory, it is not possible to mount that directory via nfs and
the name of the link.

gluster volume on server:

drwxr-xr-x 2 root root 6 Oct 22 14:24 folder
lrwxrwxrwx 1 root root 7 Oct 22 14:24 link -> folder/


nfs mount on client:

[root at gfs01 ~]# mount -t nfs -o vers=3 172.29.1.70:/gv0/link /nfs/
mount.nfs: an incorrect mount option was specified
[root at gfs01 ~]# mount -t nfs -o vers=3 172.29.1.70:/gv0/folder /nfs/
[root at gfs01 ~]# 


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. create and start a volume
2. create a directory in the volume
3. create a symbolic link to the directory in the volume 
4. try to mount from client the sub-directory via nfs an the name of the link

Actual results:

mount.nfs: an incorrect mount option was specified

Expected results:

mount to be successful 

Additional info:

--- Additional comment from jiademing on 2014-01-08 04:15:52 CET ---

I reproduce the issue, In my opinion, the link only point a relative path, then
the NFS client can not analysis the relative path.
But in glusterfs server volume, can not create a absolute path symlink for the
real sub directories.

--- Additional comment from John Skeoch on 2014-09-22 00:55:32 CEST ---

User spradhan at redhat.com's account has been closed

--- Additional comment from Niels de Vos on 2014-09-30 18:25:36 CEST ---

It seems that the Linux kernel NFS-server allows mounting a symlink pointing to
a directory. One requirement is that the target of the symlink points to a
directory that is available on the export (I have not done any detailed
permission checks).


Referenced Bugs:

https://bugzilla.redhat.com/show_bug.cgi?id=991300
[Bug 991300] nfs: mount using symlink of a dir fails
https://bugzilla.redhat.com/show_bug.cgi?id=1021998
[Bug 1021998] nfs mount via symbolic link does not work
-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Bugs mailing list