[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] Check nano seconds (nsec) to accurate; extract of sym-lin
From: |
Joerg Schilling |
Subject: |
Re: [Bug-tar] Check nano seconds (nsec) to accurate; extract of sym-links fails |
Date: |
Thu, 20 Jul 2006 12:09:36 +0200 |
User-agent: |
nail 11.2 8/15/04 |
Paul Eggert <address@hidden> wrote:
> That sounds too strong. Sometimes 'tar' should ignore the
> nanoseconds, and sometimes not. That is why CVS tar has both a
> timespec_cmp function and a tar_timespec_cmp function, for example.
I have no good idea how to deal with nanoseconds correctly since I introduced
them 10 years ago in star.
Nsecs have been activatd 5 years ago with POSIX.1-2001 support
While it is no problem to set time stamps from the nsec fields in the archive,
it is unclear how to deal with them when doing time stamp compares.
The main problem seems to be missing feature in POSIX as you need to know the
time stam granularity of the local filesystem if you like to implement
comparisons correctly.
Note that the low-carb (aehm... FAT) filesytem only implements a granularity
of 2 seconds, so it is not even correct to believe in a one second granularity.
Jörg
--
EMail:address@hidden (home) Jörg Schilling D-13353 Berlin
address@hidden (uni)
address@hidden (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily