Bug 126566 - ls -l on nfs mount gives Input/Ouptut errors
Summary: ls -l on nfs mount gives Input/Ouptut errors
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: util-linux
Version: 1
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-06-23 11:44 UTC by Huw Lynes
Modified: 2007-11-30 22:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-06-24 15:37:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Huw Lynes 2004-06-23 11:44:59 UTC
ls -l of files in nfs mounts gives spurious Input/Output Errors before
returning the real info then exiting zero.

coreutils-5.0-34.1


How reproducible:
always


Steps to Reproduce:
1: cd /your/nfs/mount
2: ls -l somefile

Actual results:
huw@wingnut:/usr/people/huw > ls -l /software/mpc/scripts/maya
ls: /software/mpc/scripts/maya: Input/output error
-rwxr-xr-x  1 james user 5754 Jun 10 16:15 /software/mpc/scripts/maya
huw@wingnut:/usr/people/huw > echo $?
0


Expected results:
huw@wingnut:/usr/people/huw > ls -l /software/mpc/scripts/maya
-rwxr-xr-x  1 james user 5754 Jun 10 16:15 /software/mpc/scripts/maya
huw@wingnut:/usr/people/huw > echo $?
0


Additional info:

Comment 1 Huw Lynes 2004-06-23 11:45:48 UTC
backing off to the previous version of coreutils makes the problem go
away.

Comment 2 Huw Lynes 2004-06-23 12:14:31 UTC
Have managed to narrow down the list of NFS mounts that are producing
this problem

RedHat 7.1 - problem
RedHat 7.2 - problem
Irix 6.5 - problem
Solaris - works
Fedora Core 1 - works

Comment 3 Huw Lynes 2004-06-23 12:41:54 UTC
Looks like it's to do with ACL support.

Comment 4 Huw Lynes 2004-06-23 14:11:14 UTC
Right after some digging around by my boss and I it looks like this
got broken during the resolution of bug 106141. This patched
coreutils-4.5.3-acl.patch 

Comment 5 Huw Lynes 2004-06-23 14:23:39 UTC
reverting to the coreutils-4.5.3-acl.patch that came with
coreutils-5.0-24 removes the problem.

The new coreutils-4.5.3-acl.patch results in HAVE_ACL_EXTENDED_FILE
being defined - which results in acl_extended_file() being called in
lib/acl.c - which fails and results in the 'Input/output error' being
printed.

Comment 6 Huw Lynes 2004-06-24 15:37:04 UTC
from my boss's post to the NFS list this:

I think I've worked out what is going on ... when I said the client was
a FC1 box, I didn't give all the facts - it's using a kernel based on
the FC1 kernel - actually one from ATrpms (http://atrpms.net/).

It turns out that this kernel has a 'nfsacl' patch (from 
http://acl.bestbits.at/download.html) applied that
adds CONFIG_NFS_ACL (and CONFIG_NFSD_ACL) which are enabled by default -
compiling a new kernel with the CONFIG_NFS_ACL option disabled (i.e.
something closer to a vanilla FC1 kernel), then the problem goes away ...

James Pearson

Comment 7 Axel Thimm 2004-06-25 20:51:20 UTC
The issue was with util-linux (could someone move the component?).

A fixed util-linux/mount rpm can be found at

http://atrpms.net/dist/fc1/util-linux/

see also: http://bugzilla.atrpms.net/show_bug.cgi?id=73



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