All of lore.kernel.org
 help / color / mirror / Atom feed
* acl_extended_file() and NFS file systems
@ 2004-06-23 16:11 James Pearson
  2004-06-23 18:10 ` Steve Dickson
  0 siblings, 1 reply; 5+ messages in thread
From: James Pearson @ 2004-06-23 16:11 UTC (permalink / raw)
  To: nfs

We've just come across a problem with running 'ls -l' on NFS mounted 
files from a client running Fedora Core 1 with the latest coreutils RPM 
(5.0-34.1)

Running ls -l on a file exported by a RedHat 7.2 system gives

% ls -l /some/remote/file
ls: /some/remote/file: Input/output error
-rw-rw-r--  1 james user 17373 Jun  1 20:02 /some/remote/file

/var/log/messages on the client gives:

Jun 23 16:00:53 wingnut kernel: call_verify: server accept status: 1
Jun 23 16:00:53 wingnut last message repeated 2 times
Jun 23 16:00:53 wingnut kernel: RPC: garbage, exit EIO

I've tracked this down to the use of acl_extended_file() by this version 
of ls - it works OK on local file systems and NFS file systems exported 
by other FC1 machines and Solaris boxes, but gives this error on file 
systems exported by RedHat 7.2 and Irix boxes.

I can reproduce the errors with a simple bit of 'C':

#include <sys/types.h>
#include <acl/libacl.h>
#include <errno.h>

main(int argc, char **argv)
{
         int ret;

         errno = 0;
         ret = acl_extended_file (argv[1]);
         printf("ret = %d\nerrno = %d\n", ret, errno);
         exit (0);
}

(need to link with -lacl)

I've searched around and come across references to a 'noacl' option to 
mount that might help, but mount on Fedora doesn't seem to support this 
- I get:

unknown nfs mount option: noacl

I don't really know if this a real problem (I can easily fix 'ls' by 
backing out the patch to coreutils that introduces this issue), but I 
would like to understand more on what is going on ...


Thanks

James Pearson





-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
NFS maillist  -  NFS@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfs

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-06-24 15:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-23 16:11 acl_extended_file() and NFS file systems James Pearson
2004-06-23 18:10 ` Steve Dickson
2004-06-23 21:54   ` James Pearson
2004-06-24 15:23     ` Steve Dickson
2004-06-24 15:32     ` James Pearson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.