]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - repair/protos.h
misc: test the dir/attr hash before formatting or repairing fs
[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 int retain_primary_sb(struct xfs_mount *mp);
20 void write_primary_sb(xfs_sb_t *sbp,
21 int size);
22
23 int find_secondary_sb(xfs_sb_t *sb);
24
25 struct fs_geometry;
26 void get_sb_geometry(struct fs_geometry *geo,
27 xfs_sb_t *sbp);
28
29 char *alloc_ag_buf(int size);
30
31 void print_inode_list(xfs_agnumber_t i);
32 char *err_string(int err_code);
33
34 void thread_init(void);
35
36 void phase1(struct xfs_mount *);
37 void phase2(struct xfs_mount *, int);
38 void phase3(struct xfs_mount *, int);
39 void phase4(struct xfs_mount *);
40 void check_rtmetadata(struct xfs_mount *mp);
41 void phase5(struct xfs_mount *);
42 void phase6(struct xfs_mount *);
43 void phase7(struct xfs_mount *, int);
44
45 int verify_set_agheader(struct xfs_mount *, struct xfs_buf *,
46 struct xfs_sb *, struct xfs_agf *, struct xfs_agi *,
47 xfs_agnumber_t);