From: David Sterba <dsterba@suse.cz>
To: Omar Sandoval <osandov@osandov.com>
Cc: linux-btrfs@vger.kernel.org, kernel-team@fb.com,
Yonghong Song <yhs@fb.com>
Subject: Re: [PATCH] Btrfs: add statx support
Date: Fri, 19 May 2017 20:20:03 +0200 [thread overview]
Message-ID: <20170519182003.GA4065@twin.jikos.cz> (raw)
In-Reply-To: <b67a19fbb3d6e9e483cefd8373b35077d1c2eca3.1494626830.git.osandov@fb.com>
On Fri, May 12, 2017 at 03:07:43PM -0700, Omar Sandoval wrote:
> From: Yonghong Song <yhs@fb.com>
>
> 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>
prev parent reply other threads:[~2017-05-19 18:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-12 22:07 [PATCH] Btrfs: add statx support Omar Sandoval
2017-05-19 18:20 ` David Sterba [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170519182003.GA4065@twin.jikos.cz \
--to=dsterba@suse.cz \
--cc=kernel-team@fb.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=osandov@osandov.com \
--cc=yhs@fb.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox