[prev in list] [next in list] [prev in thread] [next in thread] 

List:       coreutils-bug
Subject:    bug#14880: cp copy birth time
From:       Eric Blake <eblake () redhat ! com>
Date:       2013-07-16 15:20:32
Message-ID: 51E564C0.5030705 () redhat ! com
[Download RAW message or body]


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" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic