]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_io: adapt parent command to new parent pointer ioctls
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:23:20 +0000 (16:23 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:11 +0000 (17:01 -0700)
commit17eceafcf14d49a4ca4b58dc37ff1d02be717c6c
tree38d07e83653118fa91a5a4f88772711923bf607d
parent56f6ba21e97756131eefbf3cfb8faa9b57ad0ee7
xfs_io: adapt parent command to new parent pointer ioctls

For ages, xfs_io has had a totally useless 'parent' command that enabled
callers to walk the parents or print the directory tree path of an open
file.  This code used the ioctl interface presented by SGI's version of
parent pointers that was never merged.  Rework the code in here to use
the new ioctl interfaces that we've settled upon.  Get rid of the old
parent pointer checking code since xfs_repair/xfs_scrub will take care
of that.

(This originally was in the "xfsprogs: implement the upper half of
parent pointers" megapatch.)

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