bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cp -p loses precision on the timestamp of the copy


From: Bob Proulx
Subject: Re: cp -p loses precision on the timestamp of the copy
Date: Thu, 31 Jan 2008 21:04:58 -0700
User-agent: Mutt/1.5.13 (2006-08-11)

Ray Liere wrote:
> # cp -p jnk jnkcopy
> # ls --full-time jnk*
> -rw-------  1 root root 4 2008-01-31 18:40:27.879358240 -0800 jnk
> -rw-------  1 root root 4 2008-01-31 18:40:27.879358000 -0800 jnkcopy

It would be interesting to know the strace output to see what system
calls were called and the values sent to them.

  strace -e trace=file cp -p jnk jnkcopy

On my system I see something similar to this:

  utimes("/proc/self/fd/5", {1201838103, 1924}) = 0

It would also be interesting to know the type of filesystem.  One way
to see this is by looking with the -T option to df which will indicate
the type of the filesystem.

  df -T .

> # ls --version
> ls (coreutils) 5.2.1

Was this self compiled or did it come as part of a software
distribution?

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]