GNU bug report logs - #14880
cp copy birth time

Previous Next

Package: coreutils;

Reported by: Enda <enda_k2 <at> yahoo.com>

Date: Tue, 16 Jul 2013 14:43:02 UTC

Severity: normal

Tags: notabug

Merged with 14703

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eric Blake <eblake <at> redhat.com>
To: Enda <enda_k2 <at> yahoo.com>
Cc: 14880 <at> debbugs.gnu.org
Subject: bug#14880: cp copy birth time
Date: Tue, 16 Jul 2013 09:20:32 -0600
[Message part 1 (text/plain, inline)]
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, attachment)]

This bug report was last modified 6 years and 5 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.