Public bug reported:

Hello,

on a fully patched Ubuntu 26.04 server with kernel version
7.0.0-27-generic modification time is not set correct if "cp -p" is used
to copy a file to an NFS mounted filesystem. Instead of mtime from
source file current time is set. If You look on the client side it seems
correct. But on server side it's wrong.

How to reproduce:
- Install a Ubuntu server from ISO
- Update all software
apt upate; apt upgrade
- Install NFS-Server packet
apt install nfs-kernel-server
- Export a directory
mkdir /srv/export
cat << EOF >> /etc/exports
/srv/export *(rw,no_root_squash)
EOF
- Reboot server
reboot

- Mount directory (On NFS-Server or other Ubuntu 26.04 NFS-client)
mount IP-OF-SERVER:/srv/export /mnt
- Copy file with preserve mtime, owner, ...
cp -p /usr/bin/systemctl /mnt/test

-Check mtime
ls -l /usr/bin/systemctl /mnt/test /srv/export/test
--> All mtime should be equal but /srv/export/test has current time.

If You mount with option "-o vers=4.1" it works as expected.

Any help is appreciated. Best regards,

** Affects: linux-signed (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2160222

Title:
  NFS server problem / mtime is not set correct

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-signed/+bug/2160222/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to