]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: add raw parent pointer apis to support repair
authorDarrick J. Wong <djwong@kernel.org>
Mon, 29 Jul 2024 23:22:51 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:03 +0000 (17:01 -0700)
commitb813c7e546a05d9179b417319b364367de0f9070
tree30ca19c4d70afa8b54ca174b7505fbbd0676335d
parent2e5f98e2218d42302b644dc2461bcf04bb4af0f1
xfs: add raw parent pointer apis to support repair

Source kernel commit: 5769aa41ee34d4d1cc2b35376107b8e9694698f0

Add a couple of utility functions to set or remove parent pointers from
a file.  These functions will be used by repair code, hence they skip
the xattr logging that regular parent pointer updates use.

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