]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_io: Add i, n and f flags to parent command
authorAllison Henderson <allison.henderson@oracle.com>
Mon, 29 Jul 2024 23:23:21 +0000 (16:23 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:11 +0000 (17:01 -0700)
commit36770bef64a8f19eb2c2b302cd7a28cfeec4b416
treeb724fba3080922c286c5221b4edbf3d59607df2e
parent17eceafcf14d49a4ca4b58dc37ff1d02be717c6c
xfs_io: Add i, n and f flags to parent command

This patch adds the flags i, n, and f to the parent command. These flags add
filtering options that are used by the new parent pointer tests in xfstests, and
help to improve the test run time.  The flags are:

-i: Only show parent pointer records containing the given inode
-n: Only show parent pointer records containing the given filename
-f: Print records in short format: ino/gen/namelen/name

Signed-off-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
[djwong: adapt to new getparents ioctl]
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
io/parent.c
man/man8/xfs_io.8