stat does not display ext4 crtime

From:https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/997093

The field gets populated (see below) only coreutils stat does not display it. Apparently they’re waiting for the xstat() interface.

coreutils patches – aug. 2012 – TODO

stat(1) and ls(1) support for birth time. Dependent on xstat() being provided by the kernel

You can get the creation time through debugfs + stat:

debugfs -R ‘stat /etc/profile’ /dev/sda2

debugfs 1.42.5 (29-Jul-2012)
Inode: 398264 Type: regular Mode: 0644 Flags: 0x80000
Generation: 2058737571 Version: 0x00000000:00000001
User: 0 Group: 0 Size: 562
File ACL: 0 Directory ACL: 0
Links: 1 Blockcount: 8
Fragment: Address: 0 Number: 0 Size: 0
ctime: 0x506b860b:19fa3c34 — Wed Oct 3 02:25:47 2012
atime: 0x50476677:dcd84978 — Wed Sep 5 16:49:27 2012
mtime: 0x506b860b:19fa3c34 — Wed Oct 3 02:25:47 2012
crtime: 0x50476677:dcd84978 — Wed Sep 5 16:49:27 2012
Size of extra inode fields: 28
EXTENTS:
(0):3308774

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s