]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - repair/protos.h
libxfs: refactor manage_zones()
[thirdparty/xfsprogs-dev.git] / repair / protos.h
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * Copyright (c) 2000-2001,2005 Silicon Graphics, Inc.
4 * All Rights Reserved.
5 */
6
7 void xfs_init(libxfs_init_t *args);
8
9 int verify_sb(char *sb_buf,
10 xfs_sb_t *sb,
11 int is_primary_sb);
12 int verify_set_primary_sb(xfs_sb_t *root_sb,
13 int sb_index,
14 int *sb_modified);
15 int get_sb(xfs_sb_t *sbp,
16 xfs_off_t off,
17 int size,
18 xfs_agnumber_t agno);
19 void write_primary_sb(xfs_sb_t *sbp,
20 int size);
21
22 int find_secondary_sb(xfs_sb_t *sb);
23
24 struct fs_geometry;
25 void get_sb_geometry(struct fs_geometry *geo,
26 xfs_sb_t *sbp);
27
28 char *alloc_ag_buf(int size);
29
30 void print_inode_list(xfs_agnumber_t i);
31 char *err_string(int err_code);
32
33 void thread_init(void);
34
35 void phase1(struct xfs_mount *);
36 void phase2(struct xfs_mount *, int);
37 void phase3(struct xfs_mount *, int);
38 void phase4(struct xfs_mount *);
39 void phase5(struct xfs_mount *);
40 void phase6(struct xfs_mount *);
41 void phase7(struct xfs_mount *, int);
42
43 int verify_set_agheader(struct xfs_mount *, struct xfs_buf *,
44 struct xfs_sb *, struct xfs_agf *, struct xfs_agi *,
45 xfs_agnumber_t);