[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-fs
Subject:    Re: futimens and utimensat vs birthtime
From:       Kirk McKusick <mckusick () mckusick ! com>
Date:       2015-08-17 23:19:34
Message-ID: 201508172319.t7HNJYKN018032 () chez ! mckusick ! com
[Download RAW message or body]

> From: John Baldwin <jhb@freebsd.org>
> To: Adrian Chadd <adrian.chadd@gmail.com>
> Subject: Re: futimens and utimensat vs birthtime
> Date: Mon, 17 Aug 2015 15:28:45 -0700
> 
> On Sunday, August 16, 2015 12:05:07 PM Adrian Chadd wrote:
>> .. then make it take a struct and a type flag. :P
>> 
>> Then you can extend it however you'd like.
> 
> I think that might be a bit much (making it a struct), but one option
> could be to add an argument that says how many timespecs are in the
> array.  Any "missing" timespecs could be treated as if they were set
> to UTIME_OMIT.  This would in theory mean you could support additional
> timestamps in the future without needing new calls.  I'm just not sure
> if there are any conceivable timestamps such that this flexibility is
> warranted?

I agree that it is unlikely that you would ever need another timestamp.
But just to stretch my imagination to think of a conceivable one, how
about a "snapshot" timestamp that indicates the time that the snapshot
of the file was taken. If it is a log file, that would let you know when
events stopped being able to be logged to it.

	~Kirk
_______________________________________________
freebsd-fs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-fs
To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic