xfs
[Top] [All Lists]

Re: Creation time in XFS

To: Timothy Shimmin <tes@xxxxxxx>
Subject: Re: Creation time in XFS
From: Andi Kleen <andi@xxxxxxxxxxxxxx>
Date: 01 Oct 2007 11:30:01 +0200
Cc: Martin Steigerwald <Martin@xxxxxxxxxxxx>, xfs@xxxxxxxxxxx
In-reply-to: <470042DC.2040009@sgi.com>
References: <200709302124.38164.Martin@lichtvoll.de> <470042DC.2040009@sgi.com>
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3
Timothy Shimmin <tes@xxxxxxx> writes:

> No XFS does not support creation time. It just has the regular
> atime,mtime and ctime.
> There are no plans that I've heard to support it.
> Not much involved to support it AFAICT but it would either involve
> changing the ondisk format of the inode or storing it in an EA.

If you ever change the on disk format adding a file type similar to ext3
to directories could also greatly speed up find in many cases.

> I wonder how this creation time is being exported currently?

I don't think it is at all currently:

% gid i_crtime
fs/udf/udf_i.h:21:#define UDF_I_CRTIME(X)               ( UDF_I(X)->i_crtime )
include/linux/ext4_fs.h:344:    __le32  i_crtime;       /* File Creation time */
include/linux/ext4_fs_i.h:160:  struct timespec i_crtime;
include/linux/udf_fs_i.h:20:    struct timespec         i_crtime;
fs/ext4/ialloc.c:566:   inode->i_mtime = inode->i_atime = inode->i_ctime = 
ei->i_crtime =
fs/ext4/inode.c:2705:   EXT4_EINODE_GET_XTIME(i_crtime, ei, raw_inode);
fs/ext4/inode.c:2792:   EXT4_EINODE_SET_XTIME(i_crtime, ei, raw_inode);

-Andi


<Prev in Thread] Current Thread [Next in Thread>