diff options
author | Darrick J. Wong <djwong@kernel.org> | 2022-07-14 11:06:53 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2022-10-14 14:16:53 -0700 |
commit | 6c1f2a60ebef79911cdd91292a789a3cb0b62165 (patch) | |
tree | 13589b3ae0b9fa2db2ae9bb387ccb0a885242fac /fs/xfs/scrub/rtsummary.h | |
parent | 2d0aac7b6e122f9b3d5db7f1f5ef8910d226f266 (diff) |
xfs: online repair of realtime summariesrepair-rtsummary_2022-10-14
Repair the realtime summary data by constructing a new rtsummary file in
the scrub temporary file, then atomically swapping the contents.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Diffstat (limited to 'fs/xfs/scrub/rtsummary.h')
-rw-r--r-- | fs/xfs/scrub/rtsummary.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fs/xfs/scrub/rtsummary.h b/fs/xfs/scrub/rtsummary.h new file mode 100644 index 000000000000..e5f3c69c4cbf --- /dev/null +++ b/fs/xfs/scrub/rtsummary.h @@ -0,0 +1,14 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * Copyright (C) 2022 Oracle. All Rights Reserved. + * Author: Darrick J. Wong <djwong@kernel.org> + */ +#ifndef __XFS_SCRUB_RTSUMMARY_H__ +#define __XFS_SCRUB_RTSUMMARY_H__ + +typedef unsigned int xchk_rtsumoff_t; + +int xfsum_copyout(struct xfs_scrub *sc, xchk_rtsumoff_t sumoff, + xfs_suminfo_t *info, unsigned int nr_words); + +#endif /* __XFS_SCRUB_RTSUMMARY_H__ */ |