]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - repair/scan.h
aa7c38d8b16343822b5482cfedcd5aa87a7d4609
[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 int scan_lbtree(
12 xfs_fsblock_t root,
13 int nlevels,
14 int (*func)(struct xfs_btree_block *block,
15 int level,
16 int type,
17 int whichfork,
18 xfs_fsblock_t bno,
19 xfs_ino_t ino,
20 xfs_rfsblock_t *tot,
21 uint64_t *nex,
22 struct blkmap **blkmapp,
23 bmap_cursor_t *bm_cursor,
24 int isroot,
25 int check_dups,
26 int *dirty,
27 uint64_t magic),
28 int type,
29 int whichfork,
30 xfs_ino_t ino,
31 xfs_rfsblock_t *tot,
32 uint64_t *nex,
33 struct blkmap **blkmapp,
34 bmap_cursor_t *bm_cursor,
35 int isroot,
36 int check_dups,
37 uint64_t magic,
38 const struct xfs_buf_ops *ops);
39
40 int scan_bmapbt(
41 struct xfs_btree_block *block,
42 int level,
43 int type,
44 int whichfork,
45 xfs_fsblock_t bno,
46 xfs_ino_t ino,
47 xfs_rfsblock_t *tot,
48 uint64_t *nex,
49 struct blkmap **blkmapp,
50 bmap_cursor_t *bm_cursor,
51 int isroot,
52 int check_dups,
53 int *dirty,
54 uint64_t magic);
55
56 void
57 scan_ags(
58 struct xfs_mount *mp,
59 int scan_threads);
60
61 #endif /* _XR_SCAN_H */