tech-userlevel archive

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

Re: preserving full timestamps



On Thu, Nov 27, 2014 at 09:47:22AM +0900, tsugutomo.enami%jp.sony.com@localhost wrote:
 > As you know, userland tools like cp(1) currently preserve timestamps
 > only up to microseconds order since there was no system call to set full
 > timestamps.
 > 
 > Nowadays, we have such system calls.  So, I'd like to change those tools
 > to set full timestamps unless there is an objection.
 > 
 > In addition, test(1) is already changed to compare full timestamps.  So,
 > unlike on netbsd-6 or earlier, currently the result of test -ot/nt may
 > be inconsistent even when timestamps are copied in a same filesystem or
 > between filesystems of same type.

Sounds like a good idea to me...

(FWIW, I don't think any of it should be #ifdef __NetBSD__; that just
causes it to misbehave silently when compiled on another platform. But
it's not a big deal.)

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index