xfs: add parent pointer ioctls
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>
Showing
- fs/xfs/libxfs/xfs_fs.h 74 additions, 0 deletionsfs/xfs/libxfs/xfs_fs.h
- fs/xfs/libxfs/xfs_ondisk.h 5 additions, 0 deletionsfs/xfs/libxfs/xfs_ondisk.h
- fs/xfs/libxfs/xfs_parent.c 34 additions, 0 deletionsfs/xfs/libxfs/xfs_parent.c
- fs/xfs/libxfs/xfs_parent.h 5 additions, 0 deletionsfs/xfs/libxfs/xfs_parent.h
- fs/xfs/xfs_export.c 1 addition, 1 deletionfs/xfs/xfs_export.c
- fs/xfs/xfs_export.h 2 additions, 0 deletionsfs/xfs/xfs_export.h
- fs/xfs/xfs_handle.c 298 additions, 0 deletionsfs/xfs/xfs_handle.c
- fs/xfs/xfs_handle.h 5 additions, 0 deletionsfs/xfs/xfs_handle.h
- fs/xfs/xfs_ioctl.c 5 additions, 1 deletionfs/xfs/xfs_ioctl.c
- fs/xfs/xfs_trace.c 1 addition, 0 deletionsfs/xfs/xfs_trace.c
- fs/xfs/xfs_trace.h 92 additions, 0 deletionsfs/xfs/xfs_trace.h
Please register or sign in to comment