mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
ffd37b22bd
Fix all the file metadata surrounding the realtime bitmap file, which includes the rt geometry, file size, forks, and space mappings. The bitmap contents themselves cannot be fixed without rt rmap, so that will come later. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
23 lines
568 B
C
23 lines
568 B
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* Copyright (C) 2023 Oracle. All Rights Reserved.
|
|
* Author: Darrick J. Wong <djwong@kernel.org>
|
|
*/
|
|
#ifndef __XFS_SCRUB_RTBITMAP_H__
|
|
#define __XFS_SCRUB_RTBITMAP_H__
|
|
|
|
struct xchk_rtbitmap {
|
|
uint64_t rextents;
|
|
uint64_t rbmblocks;
|
|
unsigned int rextslog;
|
|
unsigned int resblks;
|
|
};
|
|
|
|
#ifdef CONFIG_XFS_ONLINE_REPAIR
|
|
int xrep_setup_rtbitmap(struct xfs_scrub *sc, struct xchk_rtbitmap *rtb);
|
|
#else
|
|
# define xrep_setup_rtbitmap(sc, rtb) (0)
|
|
#endif /* CONFIG_XFS_ONLINE_REPAIR */
|
|
|
|
#endif /* __XFS_SCRUB_RTBITMAP_H__ */
|