From owner-freebsd-fs@freebsd.org Mon Aug 17 23:19:37 2015 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9E98A9BC73B for ; Mon, 17 Aug 2015 23:19:37 +0000 (UTC) (envelope-from mckusick@mckusick.com) Received: from chez.mckusick.com (chez.mckusick.com [IPv6:2001:5a8:4:7e72:d250:99ff:fe57:4030]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7BDAC17DC; Mon, 17 Aug 2015 23:19:37 +0000 (UTC) (envelope-from mckusick@mckusick.com) Received: from chez.mckusick.com (localhost [IPv6:::1]) by chez.mckusick.com (8.14.9/8.14.9) with ESMTP id t7HNJYKN018032; Mon, 17 Aug 2015 16:19:35 -0700 (PDT) (envelope-from mckusick@chez.mckusick.com) Message-Id: <201508172319.t7HNJYKN018032@chez.mckusick.com> From: Kirk McKusick To: John Baldwin Subject: Re: futimens and utimensat vs birthtime cc: Adrian Chadd , "freebsd-fs@freebsd.org" , Jilles Tjoelker In-reply-to: <6270978.RcR1JVbHrR@ralph.baldwin.cx> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <18030.1439853574.1@chez.mckusick.com> Date: Mon, 17 Aug 2015 16:19:34 -0700 X-Spam-Status: No, score=0.1 required=5.0 tests=MISSING_MID, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on chez.mckusick.com X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Aug 2015 23:19:37 -0000 > From: John Baldwin > To: Adrian Chadd > 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