Bug 226746 - mount hang with mount nfs share
mount hang with mount nfs share
Status: CLOSED DUPLICATE of bug 228868
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: nfs-utils (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Steve Dickson
Depends On:
  Show dependency treegraph
Reported: 2007-02-01 08:47 EST by Alex Lyashkov
Modified: 2007-11-16 20:14 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-08-02 15:01:02 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
fix read fsid type3 in mountd. (2.10 KB, patch)
2007-02-01 13:11 EST, Alex Lyashkov
no flags Details | Diff

  None (edit)
Description Alex Lyashkov 2007-02-01 08:47:25 EST
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:

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 13:11:19 EST
Created attachment 147125 [details]
fix read fsid type3 in mountd.
Comment 2 Alex Lyashkov 2007-02-26 12:26:06 EST
hm... it this fix will be included in next RHEL4 update ?
Comment 3 RHEL Product and Program Management 2007-05-09 04:01:05 EDT
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
Comment 5 Steve Dickson 2007-08-02 13:33:53 EDT
Fixed in nfs-utils-1.0.6-82.EL4
Comment 6 Jeff Layton 2007-08-02 15:01:02 EDT
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 ***

Note You need to log in before you can comment on or make changes to this bug.