Package: nfs-common Version: 2.8.3-1 Copying a file from an Debian 12 X64 NFS server system to a local disk on a running Debian 13 NFS client system (downloaded and built 5/29/2025) exits with an error but copies the file successfully if '--preserve=mode' is specified. Both the NFS server disk and the NFS client disk are ext4.
This works correctly and without error on a Debian 12 X64 or arm64 NFS client system. NFS server: * Debian 12 X64 * File system fstab entry: /dev/disk/by-partuuid/6ce32e00-7481-b244-9924-f616c327c050 /h ext4 defaults,noatime 0 0 * /etc/exports entry: /h 192.168.92.0/24(rw,no_root_squash,no_subtree_check,insecure) NFS client: * Debian 13 X64 * fstab entry: mondo:/h /h nfs rw,noatime,x-systemd.automount,x-systemd.idle-timeout=3600 0 0 * NFS mount via mount command: mondo:/h on /h type nfs4 (rw,noatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr\ =192.168.92.116,local_lock=none,addr=192.168.92.9,x-systemd.automount,x-systemd.idle-timeout=3600) Copying a file from the NFS server share to the NFS client with no switches works correctly. Copying with --preserve=mode copies the file correctly but exits with a failure status. d13~/test# ls -l l /h/tmp total 8 drwxr-xr-x 2 root root 4096 Jun 2 10:15 . drwxr-xr-x 19 root root 4096 Jun 2 10:15 .. -rw-r--r-- 1 root root 0 Jun 2 10:15 foobar d13~/test# rm -f foobar d13~/test# cp /h/tmp/foobar . d13~/test# ls -l foobar -rw-r--r-- 1 root root 0 Jun 2 10:18 foobar d13~/test# rm -f foobar d13~/test# cp --preserve=mode /h/tmp/foobar . cp: preserving permissions for './foobar': Operation not supported d13~/test# echo $? 1 d13~/test# ls -l foobar -rw-r--r-- 1 root root 0 Jun 2 10:18 foobar d13~/test# When this sequence of operations is performed on a Debian 12 NFS client system the copy works and the exit status is 0. I am using Debian Linux d13 6.12.27-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.27-1 (2025-05-06) x86_64 GNU/Linux from DVD image downloaded 5/29/2025