Bug 796436 - nfs4 regression - cannot cd into sub-filesystems
Summary: nfs4 regression - cannot cd into sub-filesystems
Status: CLOSED DUPLICATE of bug 798809
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel
Version: 5.8
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: rc
: ---
Assignee: nfs-maint
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-22 21:34 UTC by David Brodbeck
Modified: 2012-03-01 16:32 UTC (History)
6 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2012-03-01 16:32:07 UTC


Attachments (Terms of Use)

Description David Brodbeck 2012-02-22 21:34:51 UTC
Description of problem:
We have an OpenSolaris server that exports some top-level ZFS filesystems that our Linux workstations mount via nfs4.  We rely on nfs4 to auto-mount filesystems below these mountpoints as needed.  Up through kernel-2.6.18-274 this worked fine; however, with 2.6.18-308 I now get a "Not a directory" error.

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

How reproducible:
It happens every time in our environment, against both of our OpenSolaris servers.  I have not tried it against other NFS servers.

Steps to Reproduce:
1. mount an NFS4 filesystem that has other filesystems exported below it.
2. Try to cd into one of the sub filesystems or otherwise access it
  
Actual results:
$ uname -a
Linux colobus 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux
$ mount | grep 'corpora'
192.168.100.100:/tank/corpora on /corpora type nfs4 (rw,noatime,bg,addr=192.168.100.100)
$ ls -ld /corpora/LDC
drwxrwsr-x 134 root corpora-w 136 Feb 10 16:27 /corpora/LDC
$ cd /corpora/LDC
-bash: cd: /corpora/LDC: Not a directory


Expected results:
$ uname -a
Linux colobus 2.6.18-274.12.1.el5 #1 SMP Tue Nov 8 21:37:35 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
$ mount | grep 'corpora'
192.168.100.100:/tank/corpora on /corpora type nfs4 (rw,noatime,bg,addr=192.168.100.100)
$ ls -ld /corpora/LDC
drwxrwsr-x 134 root corpora-w 136 Feb 10 16:27 /corpora/LDC
$ cd /corpora/LDC
$ pwd
/corpora/LDC


Additional info:

Comment 1 Bruce A. Locke 2012-02-29 23:05:52 UTC
This occurs with a pure RHELv5 environment also.

# cd /mnt/test-fs/test-cfs
-bash: cd: /mnt/test-fs/test-cfs: Not a directory
# file /mnt/test-fs/test-cfs
/mnt/test-fs/test-cfs: directory

Behavior occurs if NFSv4 client is running the 2.6.18-308.el5 kernel.  It does not occur with 
If the client is running 2.6.18-274.17.1.el5.

Red Hat case #00608611


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