[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14880: cp copy birth time
From: |
Eric Blake |
Subject: |
bug#14880: cp copy birth time |
Date: |
Tue, 16 Jul 2013 09:20:32 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 |
On 07/16/2013 08:42 AM, Enda wrote:
> Copying a file using cp on a NTFS filesystem to an ext4 filesystem does not
> copy the birth time:
>
> $ cp --preserve=all ntfs.txt ~
>
>
> $ stat ~/ntfs.txt
> ...
> Birth: -
You CAN'T copy birth time. There is no file system that lets you set
birth time to anything other than the time when the file is created.
But as the copy is created at the time you run cp, if the destination
supports birth time, by the very definition of brith time the
destination will record the time cp was run, and not the time of the
original source.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature