Re: Re: Re: question related to cp (-p) and /tmp
> Looks like the error happens while trying to set the extended attributes
> on the destination file. I don't really know how xattr works, but
> it looks like it's trying to set an attribute named "system.nfs4_acl"
> on a file that's in the /tmp directory.
That is more clear to me now. And so I can confirm that copying to other
destination that is a local disk device gives me the same message and exitcode:
$ LANG=C cp -p test.sh /home2/patrice/ ; echo $?
cp: preserving permissions for '/home2/patrice/test.sh': Operation not supported
1
$ mount | grep home2
/dev/sdb7 on /home2 type ext4 (rw,relatime,stripe=32751)
I should have tested this also.
> I can't tell whether this is a bug in cp, or a bug in the kernel.
> Someone who understands xattr might be better able to help.
Just for the story, the current kernel on this system is:
$ uname -srvmo
Linux 6.9.8-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.9.8-1 (2024-07-07) x86_64 GNU/Linux
so probably it should be reboot at some point and switch for instance
to linux-image-6.9.8-amd64 that is already installed.
Many thanks to all!
Reply to: