GNU bug report logs - #63856
>=coreutils-9.2 cp: preserving permissions: Operation not supported when copying from no_root_squash nfs export

Previous Next

Package: coreutils;

Reported by: Peter Robertson <Peter <at> corrosivetruths.org>

Date: Fri, 2 Jun 2023 17:58:03 UTC

Severity: normal

To reply to this bug, email your comments to 63856 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#63856; Package coreutils. (Fri, 02 Jun 2023 17:58:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Peter Robertson <Peter <at> corrosivetruths.org>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Fri, 02 Jun 2023 17:58:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Peter Robertson <Peter <at> corrosivetruths.org>
To: bug-coreutils <at> gnu.org
Subject: >=coreutils-9.2 cp: preserving permissions: Operation not supported
 when copying from no_root_squash nfs export
Date: Fri, 2 Jun 2023 17:29:34 +0000
I have an nfs export: /mnt/Backup Hostname(no_root_squash,ro,mp)
It exports this drive, LABEL=Backup    /mnt/Backup
        btrfs   noatime,compress-force=zstd:99

I have a locally mounted drive, /mnt/Mirror (LABEL=Mirror
/mnt/Mirror             btrfs   compress-force=zstd:99,noatime,nofail)

I mount the nfs share: mount Hostname:/mnt/Backup /mnt/Backup.

I cp a file from one to the other, cp -av
/mnt/Backup/snaps/elden/90/info.xml
/mnt/Mirror/snaps/elden/90/info.xml.

Under coreutils-9.1 I get no error. Under coreutils-9.2 I get cp:
preserving permissions for ‘/mnt/Mirror/snaps/elden/90/info.xml’:
Operation not supported

In both cases the resulting copy looks like this:

# ls -l /mnt/*/snaps/elden/90/info.xml
-rw------- 1 root root 184 Apr 17 10:52 /mnt/Backup/snaps/elden/90/info.xml
-rw------- 1 root root 184 Apr 17 10:52 /mnt/Mirror/snaps/elden/90/info.xml

I git bisected with gentoo's live ebuild coreutils-9999
# first bad commit: [28a85116feef1f9a6f31c5ab8cfe50d7aa8d6fc4] build:
update gnulib submodule to latest

# cp --version
cp (GNU coreutils) 9.2
Packaged by Gentoo (9.2-r2 (p0))
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Torbjorn Granlund, David MacKenzie, and Jim Meyering.

Reproducible: Always




Information forwarded to bug-coreutils <at> gnu.org:
bug#63856; Package coreutils. (Sat, 03 Jun 2023 18:48:01 GMT) Full text and rfc822 format available.

Message #8 received at 63856 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Peter Robertson <Peter <at> corrosivetruths.org>, 63856 <at> debbugs.gnu.org
Subject: Re: bug#63856: >=coreutils-9.2 cp: preserving permissions: Operation
 not supported when copying from no_root_squash nfs export
Date: Sat, 3 Jun 2023 19:47:24 +0100
On 02/06/2023 18:29, Peter Robertson wrote:
> I have an nfs export: /mnt/Backup Hostname(no_root_squash,ro,mp)
> It exports this drive, LABEL=Backup    /mnt/Backup
>          btrfs   noatime,compress-force=zstd:99
> 
> I have a locally mounted drive, /mnt/Mirror (LABEL=Mirror
> /mnt/Mirror             btrfs   compress-force=zstd:99,noatime,nofail)
> 
> I mount the nfs share: mount Hostname:/mnt/Backup /mnt/Backup.
> 
> I cp a file from one to the other, cp -av
> /mnt/Backup/snaps/elden/90/info.xml
> /mnt/Mirror/snaps/elden/90/info.xml.
> 
> Under coreutils-9.1 I get no error. Under coreutils-9.2 I get cp:
> preserving permissions for ‘/mnt/Mirror/snaps/elden/90/info.xml’:
> Operation not supported
> 
> In both cases the resulting copy looks like this:
> 
> # ls -l /mnt/*/snaps/elden/90/info.xml
> -rw------- 1 root root 184 Apr 17 10:52 /mnt/Backup/snaps/elden/90/info.xml
> -rw------- 1 root root 184 Apr 17 10:52 /mnt/Mirror/snaps/elden/90/info.xml
> 
> I git bisected with gentoo's live ebuild coreutils-9999
> # first bad commit: [28a85116feef1f9a6f31c5ab8cfe50d7aa8d6fc4] build:
> update gnulib submodule to latest
> 
> # cp --version
> cp (GNU coreutils) 9.2
> Packaged by Gentoo (9.2-r2 (p0))
> Copyright (C) 2023 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.
> 
> Written by Torbjorn Granlund, David MacKenzie, and Jim Meyering.
> 
> Reproducible: Always

This may be related to:
https://bugzilla.redhat.com/show_bug.cgi?id=2160675

cheers,
Pádraig




This bug report was last modified 321 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.