cp with reflink over NFSv4 2 fails Operation not supported
Applies to
- ONTAP 9
- NFSv4.2
Issue
- When attempting to perform a cp operation using the --reflink=always option over NFSv4.2, the following error is returned:
[root@localhost endor]# cp --reflink=always myself.txt myself2.txt
cp: failed to clone 'myself2.txt' from 'myself.txt': Operation not supported
- Despite the error, the destination file is still created:
[root@localhost endor]# ls -la
total 88
drwxrwxrwx 3 root root 4096 Jul 24 16:59 .
drwxr-xr-x 12 root root 4096 Dec 6 2024 ..
drwxr-xr-x+ 2 root root 4096 Dec 10 2024 aclpreserve
-rw-r--r-- 1 root root 0 Jul 24 16:59 myself2.txt
-rw-r--r-- 1 1002 65533 0 Nov 15 2024 myself.txt