Artificial intelligent assistant

Why debugfs doesn't show crtime in nanoseconds? I am using: debugfs -R 'stat <7473635>' /dev/sda7 to get the file creation time (`crtime`). Inode: 7473635 Type: regular Mode: 0664 Flags: 0x80000 Generation: 1874934325 Version: 0x00000000:00000001 User: 1000 Group: 1000 Size: 34 File ACL: 0 Directory ACL: 0 Links: 1 Blockcount: 8 Fragment: Address: 0 Number: 0 Size: 0 ctime: 0x55b65ebc:98040bc4 -- Mon Jul 27 22:09:24 2015 atime: 0x55da0168:60b33f74 -- Sun Aug 23 22:52:48 2015 mtime: 0x55b65ebc:98040bc4 -- Mon Jul 27 22:09:24 2015 crtime: 0x55b65ebc:970fe7cc -- Mon Jul 27 22:09:24 2015 Size of extra inode fields: 28 EXTENTS: (0):29919781 Why am I not getting `crtime` in nanoseconds even though `ext4` supports nanosecond resolution?

It does show the timestamp (with nanoseconds precision) but _in hex_ ; it's the field after `crtime:`, e.g. in your output `0x55b65ebc:970fe7cc`. The part after the colon is the nanoseconds.
This article gives more details and explains how to calculate the timestamp/nanoseconds. So, e.g. to convert the hex values to a timestamp _a la_ `stat` you could run:


date -d @$(printf %d 0x55b65ebc).$(( $(printf %d 0x970fe7cc) / 4 )) +'%F %T.%N %z'


2015-07-27 19:39:24.633600499 +0300

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy e9a54f8fe08c6b963c22d8e8b2a98bbf