]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - repair/scan.h
libxfs: refactor manage_zones()
[thirdparty/xfsprogs-dev.git] / repair / scan.h
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc.
4 * All Rights Reserved.
5 */
6 #ifndef _XR_SCAN_H
7 #define _XR_SCAN_H
8
9 struct blkmap;
10
11 void set_mp(xfs_mount_t *mpp);
12
13 int scan_lbtree(
14 xfs_fsblock_t root,
15 int nlevels,
16 int (*func)(struct xfs_btree_block *block,
17 int level,
18 int type,
19 int whichfork,
20 xfs_fsblock_t bno,
21 xfs_ino_t ino,
22 xfs_rfsblock_t *tot,
23 uint64_t *nex,
24 struct blkmap **blkmapp,
25 bmap_cursor_t *bm_cursor,
26 int isroot,
27 int check_dups,
28 int *dirty,
29 uint64_t magic),
30 int type,
31 int whichfork,
32 xfs_ino_t ino,
33 xfs_rfsblock_t *tot,
34 uint64_t *nex,
35 struct blkmap **blkmapp,
36 bmap_cursor_t *bm_cursor,
37 int isroot,
38 int check_dups,
39 uint64_t magic,
40 const struct xfs_buf_ops *ops);
41
42 int scan_bmapbt(
43 struct xfs_btree_block *block,
44 int level,
45 int type,
46 int whichfork,
47 xfs_fsblock_t bno,
48 xfs_ino_t ino,
49 xfs_rfsblock_t *tot,
50 uint64_t *nex,
51 struct blkmap **blkmapp,
52 bmap_cursor_t *bm_cursor,
53 int isroot,
54 int check_dups,
55 int *dirty,
56 uint64_t magic);
57
58 void
59 scan_ags(
60 struct xfs_mount *mp,
61 int scan_threads);
62
63 #endif /* _XR_SCAN_H */