Package: coreutils
Version: 8.5-1
When "cp --reflink=always" fails due to lack of filesystem support it
leaves an empty target file. This seem like a poor failure mode. I
suggest that it would be more robust if the the empty target file were
to be cleaned up by unlinking it.
$ df -hT .
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/port--kdr-root
ext4 220G 190G 20G 91% /
$ cp /usr/lib/libc.a foo
$ cp --reflink=always foo goo
cp: failed to clone `goo': Inappropriate ioctl for device
$ ls -l foo goo
-rw-r--r-- 1 barak barak 4433334 Feb 16 09:45 foo
-rw-r--r-- 1 barak barak 0 Feb 16 09:45 goo
Cheers,
--Barak.
--
Barak A. Pearlmutter
Hamilton Institute & Dept Comp Sci, NUI Maynooth, Co. Kildare, Ireland
http://www.bcl.hamilton.ie/~barak/
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]