linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3 V3] xfs_io: hook up statx
@ 2017-04-06 18:43 Eric Sandeen
  2017-04-06 18:46 ` [PATCH 1/3] xfs_io: move stat functions to new file Eric Sandeen
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Eric Sandeen @ 2017-04-06 18:43 UTC (permalink / raw)
  To: linux-xfs, fsdevel, David Howells

These 3 patches are a third pass to add a statx command
to xfs_io in hopes that it will aid creation of xfstests
statx regression tests.

bare "statx" output should look just like bare "stat" output.

xfs_io> help statx
statx [-v|-r][-m basic | -m all | -m <mask>][-FD] -- extended statistics on the currently open file

 Display extended file status.

 Options:
 -v -- More verbose output
 -r -- Print raw statx structure fields
 -m mask -- Specify the field mask for the statx call
            (can also be 'basic' or 'all'; default STATX_ALL)
 -D -- Don't sync attributes with the server
 -F -- Force the attributes to be sync'd with the server

xfs_io> statx -r
stat.mask = 0x7ff
stat.blksize = 4096
stat.attributes = 0x0
stat.nlink = 1
stat.uid = 0
stat.gid = 0
stat.mode: 0100644
stat.ino = 3905768
stat.size = 4691
stat.blocks = 16
stat.atime.tv_sec = 1491338515
stat.atime.tv_nsec = 564190075
stat.btime.tv_sec = 0
stat.btime.tv_nsec = 0
stat.ctime.tv_sec = 1489602207
stat.ctime.tv_nsec = 556521524
stat.mtime.tv_sec = 1489602207
stat.mtime.tv_nsec = 556521524
stat.rdev_major = 0
stat.rdev_minor = 0
stat.dev_major = 8
stat.dev_minor = 33

patch 2 factors out some stat functionality, and adds a
raw stat(2) dumper for consistency.

patch 3 implements the statx stuff, and includes a header file
with lots of the new #defines so this can build on older systems;
eventually that can be removed perhaps.

An interesting limitation of all of the xfs_io stat
variants is that they currently can't stat any file that
they can't open, which may or may not be a limitation that
we care about....

-Eric

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-04-10 22:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-06 18:43 [PATCH 0/3 V3] xfs_io: hook up statx Eric Sandeen
2017-04-06 18:46 ` [PATCH 1/3] xfs_io: move stat functions to new file Eric Sandeen
2017-04-10 21:47   ` Darrick J. Wong
2017-04-06 18:48 ` [PATCH 2/3] xfs_io: refactor stat functions, add raw dump Eric Sandeen
2017-04-10 21:48   ` Darrick J. Wong
2017-04-06 18:53 ` [PATCH 3/3] xfs_io: hook up statx Eric Sandeen
2017-04-10 21:33   ` [PATCH 3/3 V4] " Eric Sandeen
2017-04-10 21:56     ` Darrick J. Wong
2017-04-10 22:07     ` [PATCH 3/3 V5] " Eric Sandeen
2017-04-10 22:13       ` Darrick J. Wong
2017-04-10 22:36 ` [PATCH 0/3 V3] " David Howells

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).