tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Support for tv_sec=-1 (one second before the epoch) timestamps?
On Wed, Dec 12, 2018 at 08:46:33PM +0100, Micha? G?rny wrote:
> Sadly, this does not solve the problem entirely since kernel also
> special-cases the value of '-1'. FWICS, the vattr structure used to
> update filesystem information uses the value of VNOVAL or -1 to indicate
> that the particular attribute should not be changed. As a result, any
> attempt to set a timestamp with tv_sec=-1 is silently ignored
> by the kernel.
VNOVAL is a bug. It should go away. However, this is not entirely
trivial, as you've noticed...
--
David A. Holland
dholland%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index