diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-04-16 00:54:45 +0300 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2024-04-16 00:58:53 +0300 |
commit | e47dcf113ae348678143cc935a1183059c02c9ad (patch) | |
tree | 537f1ceeda6483a7cf9dbc85e2073d09eb25954d /fs/xfs/scrub/xfblob.h | |
parent | 629fdaf5f5b1b7f7107ed4de04e0991a99501ced (diff) | |
download | linux-e47dcf113ae348678143cc935a1183059c02c9ad.tar.xz |
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>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/scrub/xfblob.h')
-rw-r--r-- | fs/xfs/scrub/xfblob.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/xfs/scrub/xfblob.h b/fs/xfs/scrub/xfblob.h index bd98647407f1..78a67a06408f 100644 --- a/fs/xfs/scrub/xfblob.h +++ b/fs/xfs/scrub/xfblob.h @@ -20,5 +20,7 @@ int xfblob_load(struct xfblob *blob, xfblob_cookie cookie, void *ptr, int xfblob_store(struct xfblob *blob, xfblob_cookie *cookie, const void *ptr, uint32_t size); int xfblob_free(struct xfblob *blob, xfblob_cookie cookie); +unsigned long long xfblob_bytes(struct xfblob *blob); +void xfblob_truncate(struct xfblob *blob); #endif /* __XFS_SCRUB_XFBLOB_H__ */ |