Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 4 product line. The current stable release is 4.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 226746

Summary: mount hang with mount nfs share
Product: Red Hat Enterprise Linux 4 Reporter: Alex Lyashkov <shadow>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.4   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-08-02 19:01:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
fix read fsid type3 in mountd. none

Description Alex Lyashkov 2007-02-01 13:47:25 UTC
Description of problem:
when I tried to mount lustre FS exported via nfs - mount hang in data wait state.

Version-Release number of selected component (if applicable):
kernel 2.6.9-42.0.3
nfs-tools 1.0.6-70.el

How reproducible:
always.

Steps to Reproduce:
1. create device with major or minor number over 256 and export via nfs.
  
Actual results:
mount hand

Expected results:
mount ok.

Additional info:
bug exist in both kernel and nfs tools.

first bug in nfs-tools,
nfs-tools can`t be read fsid type 3 from kernel hash - nfsd.fh and grop request
without any error message. for fix this function nfsd_fh in utils/mount should
be updated from lastes version (i test with 1.0.10).
second bug exist in fs/nfsd/export.c - he also drop fsid type 3 from tools.
this fixed with small patch (get from 2.6.16 kernel)
--- export.c.orig       2007-02-01 14:46:17.000000000 +0200
+++ export.c    2007-02-01 14:46:34.000000000 +0200
@@ -132,7 +133,7 @@
        if (*ep)
                goto out;
        dprintk("found fsidtype %d\n", fsidtype);
-       if (fsidtype > 2)
+       if (key_len(fsidtype)==0) /* invalid type */
                goto out;
        if ((len=qword_get(&mesg, buf, PAGE_SIZE)) <= 0)
                goto out;

after this changed i`m able to export filesystems with fsid type 3.

Comment 1 Alex Lyashkov 2007-02-01 18:11:19 UTC
Created attachment 147125 [details]
fix read fsid type3 in mountd.

Comment 2 Alex Lyashkov 2007-02-26 17:26:06 UTC
hm... it this fix will be included in next RHEL4 update ?

Comment 3 RHEL Program Management 2007-05-09 08:01:05 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 5 Steve Dickson 2007-08-02 17:33:53 UTC
Fixed in nfs-utils-1.0.6-82.EL4

Comment 6 Jeff Layton 2007-08-02 19:01:02 UTC
The patch in comment #1 was committed as part of U5 for BZ 228868. It should be
in nfs-utils versions >= -78.EL. Closing this bug as a duplicate. Please reopen
if you're still having issues...


*** This bug has been marked as a duplicate of 228868 ***