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:
backing off to the previous version of coreutils makes the problem go away.
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
Looks like it's to do with ACL support.
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
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.
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
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