[Bugs] [Bug 1337597] Mounting a volume over NFS with a subdir followed by a / returns "Invalid argument"

bugzilla at redhat.com bugzilla at redhat.com
Mon May 23 13:20:42 UTC 2016


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



--- Comment #3 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/14421 committed in master by Jeff Darcy
(jdarcy at redhat.com) 
------
commit 6c936a0da3f5f56dd711169f7eb8d335bbb8cdc7
Author: Niels de Vos <ndevos at redhat.com>
Date:   Thu May 19 12:53:09 2016 +0200

    nfs: strip trailing / when clients do subdir mounts

    Mounting a volume over NFS with a subdir followed by a / does not work:

      # mount -t nfs -o vers=3 storage.example.com:/media/installation/ /mnt
      mount.nfs: an incorrect mount option was specified

    In the nfs.log:

      [client-rpc-fops.c:2930:client3_3_lookup_cbk] 0-media-client-0: remote
operation failed. Path: /installation/ (00000000-0000-0000-0000-000000000000)
[Invalid argument]
      [client-rpc-fops.c:2930:client3_3_lookup_cbk] 0-media-client-1: remote
operation failed. Path: /installation/ (00000000-0000-0000-0000-000000000000)
[Invalid argument]
      [mount3.c:1134:mnt3_resolve_subdir_cbk] 0-nfs: path=/installation/
(Invalid argument) [Invalid argument]

    It is not possible to resolve paths with a trailing /. Stripping
    trailing /'s from the subdir to mount is sufficient to make it work
    again.

    Change-Id: I4075d4cd351438de58e1ff81f0fb65a1ff076da4
    BUG: 1337597
    Signed-off-by: Niels de Vos <ndevos at redhat.com>
    Reviewed-on: http://review.gluster.org/14421
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    Smoke: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: jiffin tony Thottan <jthottan at redhat.com>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.com>
    Reviewed-by: Jeff Darcy <jdarcy at redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=1tpRYWPi70&a=cc_unsubscribe


More information about the Bugs mailing list