xfs: create temporary files and directories for online repair
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:54:28 +0000 (14:54 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 21:58:48 +0000 (14:58 -0700)
commit84c14ee39dd388d73054181c70b3f42af7ddc238
treebdeb679c31b2148108427b95a06abf42a57ff026
parentcab23a4233c601668da51dd53776f1f83d0dccee
xfs: create temporary files and directories for online repair

Teach the online repair code how to create temporary files or
directories.  These temporary files can be used to stage reconstructed
information until we're ready to perform an atomic extent swap to commit
the new metadata.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/Makefile
fs/xfs/scrub/parent.c
fs/xfs/scrub/scrub.c
fs/xfs/scrub/scrub.h
fs/xfs/scrub/tempfile.c [new file with mode: 0644]
fs/xfs/scrub/tempfile.h [new file with mode: 0644]
fs/xfs/scrub/trace.h
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h