Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1440228

Summary: NFS Sub-directory mount not working on solaris10 client
Product: [Community] GlusterFS Reporter: Bipin Kunal <bkunal>
Component: nfsAssignee: Bipin Kunal <bkunal>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 3.8CC: bugs, ndevos
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Solaris   
Whiteboard:
Fixed In Version: glusterfs-3.8.12 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1426667
: 1440278 (view as bug list) Environment:
Last Closed: 2017-05-29 04:58:58 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1426667    
Bug Blocks: 1440754    

Comment 1 Worker Ant 2017-04-10 06:40:07 UTC
REVIEW: https://review.gluster.org/17017 (nfs: make subdir mounting work for Solaris 10 clients) posted (#1) for review on release-3.8 by bipin kunal (bkunal)

Comment 2 Worker Ant 2017-04-10 06:41:01 UTC
REVIEW: https://review.gluster.org/17017 (nfs: make subdir mounting work for Solaris 10 clients) posted (#2) for review on release-3.8 by bipin kunal (bkunal)

Comment 3 Worker Ant 2017-04-29 11:20:32 UTC
COMMIT: https://review.gluster.org/17017 committed in release-3.8 by Niels de Vos (ndevos) 
------
commit 767047377acee40f40237d2aca45cd94391cba37
Author: Bipin Kunal <bkunal>
Date:   Mon Feb 27 15:23:04 2017 +0530

    nfs: make subdir mounting work for Solaris 10 clients
    
    This fixes the segfault caused by solaris client in Gluster/NFS.
    Volname was not being parsed properly, Instead of volume
    name complete path was being used in nfs_mntpath_to_xlator().
    Fixed it by striping volume name from complete path  in nfs_mntpath_to_xlator().
    
    Modified function name nfs3_funge_solaris_zerolen_fh() to
    nfs3_funge_webnfs_zerolen_fh() as zero-filled filehandle is specific to WebNFS.
    RFC : https://tools.ietf.org/html/rfc2055
    Solaris uses WebNFS, the zero-filled FH is defined in the WebNFS spec.
    
    Logic was even added in fuction nfs3_funge_webnfs_zerolen_fh() to send
    subdir path in function glfs_resolve_at() instead of complete path for
    subdir mount.
    
    > Change-Id: I19aae3547b8910e7ed4974ee5385424cab3e834a
    > BUG: 1426667
    > Signed-off-by: Bipin Kunal <bkunal>
    > Reviewed-on: https://review.gluster.org/16770
    > Reviewed-by: Niels de Vos <ndevos>
    > Smoke: Gluster Build System <jenkins.org>
    > NetBSD-regression: NetBSD Build System <jenkins.org>
    > CentOS-regression: Gluster Build System <jenkins.org>
    > (cherry picked from commit 40e571339b3c19ab2a5b6a93bc46eadf2252d006)
    
    Change-Id: I21ebb1d104b6eb914af5f26a6906f161c132179c
    BUG: 1440228
    Signed-off-by: Bipin Kunal <bkunal>
    Reviewed-on: https://review.gluster.org/17017
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Niels de Vos <ndevos>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    Smoke: Gluster Build System <jenkins.org>

Comment 4 Niels de Vos 2017-05-29 04:58:58 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-3.8.12, please open a new bug report.

glusterfs-3.8.12 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] https://lists.gluster.org/pipermail/announce/2017-May/000072.html
[2] https://www.gluster.org/pipermail/gluster-users/