diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-07-14 11:06:58 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-10-14 14:16:56 -0700 |
commit | cdff922babd46994d6e70672c78a33e6c9e9be4b (patch) | |
tree | 761babc1187c972d6e076f5fb3a2ed88c78abbdd /fs/xfs/scrub/scrub.c | |
parent | 9678c9e283f964c7b8dddd1c3933b7f01dc8701e (diff) |
xfs: online repair of symbolic linksrepair-symlink_2022-10-14
If a symbolic link target looks bad, try to sift through the rubble to
find as much of the target buffer that we can, and stage a new target
(short or remote format as needed) in a temporary file and use the
atomic extent swapping mechanism to commit the results.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub/scrub.c')
-rw-r--r-- | fs/xfs/scrub/scrub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/scrub.c b/fs/xfs/scrub/scrub.c index b334fd3d7706..a596789e463d 100644 --- a/fs/xfs/scrub/scrub.c +++ b/fs/xfs/scrub/scrub.c @@ -341,7 +341,7 @@ static const struct xchk_meta_ops meta_scrub_ops[] = { .type = ST_INODE, .setup = xchk_setup_symlink, .scrub = xchk_symlink, - .repair = xrep_notsupported, + .repair = xrep_symlink, }, [XFS_SCRUB_TYPE_PARENT] = { /* parent pointers */ .type = ST_INODE, |