]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - repair/scan.h
Sync up libxfs to latest kernel code
[thirdparty/xfsprogs-dev.git] / repair / scan.h
1 /*
2 * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc.
3 * All Rights Reserved.
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it would be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 #ifndef _XR_SCAN_H
19 #define _XR_SCAN_H
20
21 struct blkmap;
22
23 void scan_sbtree(
24 xfs_agblock_t root,
25 int nlevels,
26 xfs_agnumber_t agno,
27 int suspect,
28 void (*func)(struct xfs_btree_block *block,
29 int level,
30 xfs_agblock_t bno,
31 xfs_agnumber_t agno,
32 int suspect,
33 int isroot),
34 int isroot);
35
36 int scan_lbtree(
37 xfs_dfsbno_t root,
38 int nlevels,
39 int (*func)(struct xfs_btree_block *block,
40 int level,
41 int type,
42 int whichfork,
43 xfs_dfsbno_t bno,
44 xfs_ino_t ino,
45 xfs_drfsbno_t *tot,
46 __uint64_t *nex,
47 struct blkmap **blkmapp,
48 bmap_cursor_t *bm_cursor,
49 int isroot,
50 int check_dups,
51 int *dirty),
52 int type,
53 int whichfork,
54 xfs_ino_t ino,
55 xfs_drfsbno_t *tot,
56 __uint64_t *nex,
57 struct blkmap **blkmapp,
58 bmap_cursor_t *bm_cursor,
59 int isroot,
60 int check_dups);
61
62 int scanfunc_bmap(
63 struct xfs_btree_block *block,
64 int level,
65 int type,
66 int whichfork,
67 xfs_dfsbno_t bno,
68 xfs_ino_t ino,
69 xfs_drfsbno_t *tot,
70 __uint64_t *nex,
71 struct blkmap **blkmapp,
72 bmap_cursor_t *bm_cursor,
73 int isroot,
74 int check_dups,
75 int *dirty);
76
77 void scanfunc_bno(
78 struct xfs_btree_block *block,
79 int level,
80 xfs_agblock_t bno,
81 xfs_agnumber_t agno,
82 int suspect,
83 int isroot);
84
85 void scanfunc_cnt(
86 struct xfs_btree_block *block,
87 int level,
88 xfs_agblock_t bno,
89 xfs_agnumber_t agno,
90 int suspect,
91 int isroot);
92
93 void
94 scanfunc_ino(
95 struct xfs_btree_block *block,
96 int level,
97 xfs_agblock_t bno,
98 xfs_agnumber_t agno,
99 int suspect,
100 int isroot);
101
102 #endif /* _XR_SCAN_H */