Re: cp failure to NetApp directory with CIFS security model
From:
Jim Meyering
Subject:
Re: cp failure to NetApp directory with CIFS security model
Date:
Thu, 01 Nov 2007 08:36:19 +0100
Clarence Donath <address@hidden> wrote:
> We are experiencing undesired behavior using 'cp' and its siblings
> involving a NetApp filer qtree with the CIFS security model.
...
> UNIX functions like chmod will fail, because changing of the permission
> bits is not allowed by the filer.
...
> What I assume is happening here is that 'cp' is trying to change the
> permissons of the file after it opens a new one for writing, and
> terminates when it cannot do so.
>
> This behavior occurs with coreutils versions 6.7 and 6.9, but not
> previous versions.
Fixing this for you may be tricky, since it sounds like
your file system cannot be POSIX-compliant.
But first, have you tried a recent snapshot?
http://meyering.net/cu/coreutils-6.9-ss.tar.gzhttp://meyering.net/cu/coreutils-6.9-ss.tar.gz.sig
There have been changes in this area since 6.9.
If that still fails, I suggest you run cp under strace or
a debugger to see precisely which syscall is failing. Let us know.
The changes that I think are giving you trouble
were required to eliminate some race conditions