]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: add parent pointer ioctls
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:22:49 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:03 +0000 (17:01 -0700)
commit08626e30dd1b5d51a34f23ec56fe4d90fbb79ab6
treeb469f825a4aac9dc09303ff23acf921f822c5688
parent63886a656da8cbae07db3e6ac75ef4fe6eccb45a
xfs: add parent pointer ioctls

Source kernel commit: 233f4e12bbb2c5fb1588b857336a26e8bb6942af

This patch adds a pair of new file ioctls to retrieve the parent pointer
of a given inode.  They both return the same results, but one operates
on the file descriptor passed to ioctl() whereas the other allows the
caller to specify a file handle for which the caller wants results.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
libxfs/xfs_fs.h
libxfs/xfs_ondisk.h
libxfs/xfs_parent.c
libxfs/xfs_parent.h