coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cp --preserve=mode and NFS4 ACLs


From: Pádraig Brady
Subject: Re: cp --preserve=mode and NFS4 ACLs
Date: Tue, 24 Sep 2024 21:06:53 +0100
User-agent: Mozilla Thunderbird Beta

On 24/09/2024 18:00, Ondrej Valousek wrote:
Hmm, interesting.
First of all, I do not quite understand where this:

|"GNU coreutils upstream says that NFS-related entries should be removed|
|from the default /etc/xattr.conf to make copying of NFSv4 ACLs work:"|

...comes from. Do we know who told Kamil to remove "system.nfs4acl" entries 
from /etc/xattr.conf?
Because when removed, then "cp -p" is calmed down indeed - simply because it 
will no longer be able to copy NFSv4 ACLs

The example Ross mentioned is quite clear as you are trying to copy NFSv4 
filesystem with a non-trivial ACLs to ext4 mount.
Since ext4 filesystem is unable to store these ACLs, then "cp -p" fails with message 
"Operation not supported"

As Padraig says, on Linux, this operation will currently (sadly enough) only 
succeed when copying NFSv4->NFSv4.

In my view, the commit to xattr.conf should be reverted - yes people might 
scream about that message, but that's a not a bug, it is a new feature!

The xattr.conf entries were discussed at:
https://bugs.gnu.org/33644

It would be good if libacl was updated to support "system.nfs4acl"
which could help avoid some of these issues.

cheers,
Pádraig



reply via email to

[Prev in Thread] Current Thread [Next in Thread]