diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-07-14 11:06:54 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-11-09 19:07:42 -0800 |
commit | fa32d172c5a4f55edf3fbe94d434b933b049b3a4 (patch) | |
tree | c1b787fc70f9c7ad1e62e0b91a66fdbe84e97a62 /fs/xfs/scrub/xfarray.h | |
parent | c12a54bcecb543a88f5f4bce45cae4dbb838623a (diff) |
xfs: repair extended attributes
If the extended attributes look bad, try to sift through the rubble to
find whatever keys/values we can, stage a new attribute structure in a
temporary file and use the atomic extent swapping mechanism to commit
the results in bulk.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub/xfarray.h')
-rw-r--r-- | fs/xfs/scrub/xfarray.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/scrub/xfarray.h b/fs/xfs/scrub/xfarray.h index 259556bde465..4e11dc884a11 100644 --- a/fs/xfs/scrub/xfarray.h +++ b/fs/xfs/scrub/xfarray.h @@ -45,6 +45,8 @@ int xfarray_unset(struct xfarray *array, xfarray_idx_t idx); int xfarray_store(struct xfarray *array, xfarray_idx_t idx, const void *ptr); int xfarray_store_anywhere(struct xfarray *array, const void *ptr); bool xfarray_element_is_null(struct xfarray *array, const void *ptr); +void xfarray_truncate(struct xfarray *array); +long long xfarray_bytes(struct xfarray *array); /* * Load an array element, but zero the buffer if there's no data because we |