Yonghong Song
04a87e3472
Btrfs: add statx support
Return enhanced file attributes from the btrfs, including:
(1). inode creation time as stx_btime, and
(2). Certain BTRFS_INODE_xxx flags are mapped to stx_attributes flags.
Example output:
[root@localhost ~]# cat t.sh
touch t
chattr +aic t
~/linux/samples/statx/test-statx t
chattr -aic t
touch t
echo "========================================"
~/linux/samples/statx/test-statx t
/bin/rm t
[root@localhost ~]# ./t.sh
statx(t) = 0
results=fff
Size: 0 Blocks: 0 IO Block: 4096 regular file
Device: 00:1c Inode: 63962 Links: 1
Access: (0644/-rw-r--r--) Uid: 0 Gid: 0
Access: 2017-05-11 16:03:13.999856591-0700
Modify: 2017-05-11 16:03:13.999856591-0700
Change: 2017-05-11 16:03:14.000856663-0700
Birth: 2017-05-11 16:03:13.999856591-0700
Attributes: 0000000000000034 (........ ........ ........ ........ ........ ........ ........ .-ai.c..)
========================================
statx(t) = 0
results=fff
Size: 0 Blocks: 0 IO Block: 4096 regular file
Device: 00:1c Inode: 63962 Links: 1
Access: (0644/-rw-r--r--) Uid: 0 Gid: 0
Access: 2017-05-11 16:03:14.006857097-0700
Modify: 2017-05-11 16:03:14.006857097-0700
Change: 2017-05-11 16:03:14.006857097-0700
Birth: 2017-05-11 16:03:13.999856591-0700
Attributes: 0000000000000000 (........ ........ ........ ........ ........ ........ ........ .---.-..)
[root@localhost ~]#
Reviewed-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Yonghong Song <yhs@fb.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2017-06-19 18:26:01 +02:00
..
2017-06-19 18:25:58 +02:00
2016-09-22 10:55:32 +02:00
2017-01-09 11:24:50 +01:00
2016-12-13 11:01:30 -08:00
2017-04-18 14:07:25 +02:00
2015-01-14 19:23:47 +01:00
2017-04-26 16:27:26 +01:00
2017-06-19 18:25:59 +02:00
2016-12-06 16:06:59 +01:00
2017-06-19 18:26:00 +02:00
2017-06-19 18:26:00 +02:00
2017-06-19 18:26:00 +02:00
2017-06-19 18:26:01 +02:00
2016-07-26 13:52:25 +02:00
2017-04-18 14:07:23 +02:00
2017-04-18 14:07:23 +02:00
2017-04-18 14:07:23 +02:00
2017-04-18 14:07:23 +02:00
2017-04-18 14:07:26 +02:00
2017-02-28 14:26:07 +01:00
2017-06-09 12:48:07 -07:00
2017-06-19 18:26:01 +02:00
2017-06-19 18:26:01 +02:00
2017-02-14 15:50:51 +01:00
2017-06-19 18:26:00 +02:00
2017-06-19 18:25:59 +02:00
2017-04-18 14:07:23 +02:00
2017-04-18 14:07:23 +02:00
2017-06-19 18:26:00 +02:00
2017-06-19 18:25:59 +02:00
2017-04-27 14:13:09 -07:00
2017-04-18 14:07:26 +02:00
2017-02-17 12:03:56 +01:00
2017-06-19 18:25:59 +02:00
2015-12-17 12:16:47 -08:00
2017-06-08 17:36:03 +08:00
2016-06-06 14:08:28 +02:00
2016-12-06 16:06:59 +01:00
2017-02-28 11:30:07 +01:00
2016-01-15 19:25:02 +01:00
2017-06-19 18:26:01 +02:00
2017-06-19 18:25:58 +02:00
2015-01-06 11:04:29 -08:00
2016-01-07 14:30:52 +01:00
2014-11-19 10:34:35 -08:00
2017-06-19 18:26:01 +02:00
2015-12-17 12:16:47 -08:00
2015-03-03 17:23:57 +01:00
2017-04-18 14:07:23 +02:00
2017-04-18 14:07:23 +02:00
2014-09-17 13:37:12 -07:00
2017-06-19 18:26:00 +02:00
2016-12-06 16:06:59 +01:00
2017-02-14 15:50:51 +01:00
2017-06-19 18:25:58 +02:00
2017-04-18 14:07:26 +02:00
2017-04-18 14:07:26 +02:00
2016-12-06 16:06:59 +01:00
2017-06-19 18:25:59 +02:00
2017-06-19 18:25:58 +02:00
2017-04-18 14:07:27 +02:00
2017-06-19 18:26:00 +02:00
2017-06-19 18:25:59 +02:00
2016-01-07 14:38:02 +01:00
2016-05-25 22:35:14 +02:00
2017-06-19 18:25:59 +02:00
2017-06-19 18:25:58 +02:00
2016-01-21 18:50:40 +01:00
2017-06-19 18:25:58 +02:00
2017-04-18 14:07:25 +02:00
2015-12-18 02:51:32 +00:00
2017-04-18 14:07:23 +02:00
2017-02-14 15:50:54 +01:00
2017-02-17 12:03:50 +01:00
2017-02-17 12:03:50 +01:00
2016-12-19 18:08:15 +01:00
2017-06-19 18:25:59 +02:00
2017-06-19 18:25:59 +02:00
2017-02-14 15:50:57 +01:00
2016-05-17 19:17:09 -04:00
2017-06-19 18:26:00 +02:00