Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758833Ab0GVKfI (ORCPT ); Thu, 22 Jul 2010 06:35:08 -0400 Received: from borg.medozas.de ([188.40.89.202]:55870 "EHLO borg.medozas.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754944Ab0GVKfE (ORCPT ); Thu, 22 Jul 2010 06:35:04 -0400 Date: Thu, 22 Jul 2010 12:35:03 +0200 (CEST) From: Jan Engelhardt To: David Howells cc: viro@ZenIV.linux.org.uk, linux-fsdevel@vger.kernel.org, linux-nfs@vger.kernel.org, linux-cifs@vger.kernel.org, linux-kernel@vger.kernel.org, samba-technical@lists.samba.org, linux-ext4@vger.kernel.org Subject: Re: [PATCH 02/18] xstat: Add a pair of system calls to make extended file stats available [ver #6] In-Reply-To: <20100715021712.5544.44845.stgit@warthog.procyon.org.uk> Message-ID: References: <20100715021709.5544.64506.stgit@warthog.procyon.org.uk> <20100715021712.5544.44845.stgit@warthog.procyon.org.uk> User-Agent: Alpine 2.01 (LSU 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1223 Lines: 26 On Thursday 2010-07-15 04:17, David Howells wrote: > (6) BSD stat compatibility: Including more fields from the BSD stat such as > creation time (st_btime) and inode generation number (st_gen) [Jeremy > Allison, Bernd Schubert]. >where st_btime is the file creation time, st_gen is the inode generation >(i_generation), st_data_version is the data version number (i_version), >st_inode_flags is the flags from FS_IOC_GETFLAGS plus some extras, >request_mask and st_result_mask are bitmasks of data desired/provided and >st_extra_results[] is where as-yet undefined fields are appended. Linux already has a creation time field, it's called otime (there is no "b" in "creation"), and you will find scattered fragments of that all over the kernel (foremost, fs/jfs/, now btrfs, and I also notice sysvipc having something with that name). > struct xstat_time { > unsigned long long tv_sec, tv_nsec; > }; If it helps getting rid of the ugly suseconds_t in userspace ;-) -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/