--- Begin Message ---
Subject: |
cp --preserve=timestamps don't preserve crtime (created time) |
Date: |
Thu, 10 Feb 2011 03:03:43 +0000 (GMT) |
Thx for your great job and for useful, powerfull and stable utilities.
No realy a bug, because crtime was recently implanted in ext4, but i will be
happy to see created timestamp preserve on copy.
Symptoms :
cp --version : 8.9
cp --preserve=timestamps fileOriginal fileCopy
sudo debugfs -R 'stat <inode of fileOriginal>' /dev/sda1
ctime: 0x4d196ae0:95e62538 -- Tue Dec 28 05:43:12 2010
atime: 0x4d529bbc:5b795bd0 -- Wed Feb 9 14:50:52 2011
mtime: 0x4d196ae0:888c2d38 -- Tue Dec 28 05:43:12 2010
crtime: 0x4d196ae0:888c2d38 -- Tue Dec 28 05:43:12 2010
sudo debugfs -R 'stat <inode of fileCopy>' /dev/sda1
ctime: 0x4d5342ce:2442ab18 -- Thu Feb 10 02:43:42 2011
atime: 0x4d529bbc:5b795bd0 -- Wed Feb 9 14:50:52 2011
mtime: 0x4d196ae0:888c2d38 -- Tue Dec 28 05:43:12 2010
crtime: 0x4d5342ce:225a6318 -- Thu Feb 10 02:43:42 2011
atime and mtime are preserved but
crtime is modified.
Thx a lot!
Cristian
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#8011: cp --preserve=timestamps don't preserve crtime (created time) |
Date: |
Thu, 10 Feb 2011 16:44:28 +0100 |
Eric Blake wrote:
> On 02/09/2011 08:03 PM, Cristian Pop wrote:
>> Thx for your great job and for useful, powerfull and stable utilities.
Thanks.
>> No realy a bug, because crtime was recently implanted in ext4, but i will be
>> happy to see created timestamp preserve on copy.
>
> Thanks for the report; however, there is no way to set crtime (aka
> birthtime). Therefore, there is no way to preserve it.
Thanks for responding, Eric.
I'm closing this ticket.
--- End Message ---