]>
Commit | Line | Data |
---|---|---|
06fbdda9 MV |
1 | #ifndef _XFS_REPAIR_PROGRESS_RPT_H_ |
2 | #define _XFS_REPAIR_PROGRESS_RPT_H_ | |
3 | ||
4 | #define PROG_RPT_DEFAULT (15*60) /* default 15 minute report interval */ | |
5 | #define PHASE_START 0 | |
6 | #define PHASE_END 1 | |
7 | ||
8 | ||
9 | #define PROG_FMT_SCAN_AG 0 /* Phase 2 */ | |
10 | ||
11 | #define PROG_FMT_AGI_UNLINKED 1 /* Phase 3 */ | |
12 | #define PROG_FMT_UNCERTAIN 2 | |
13 | #define PROG_FMT_PROCESS_INO 3 | |
14 | #define PROG_FMT_NEW_INODES 4 | |
15 | ||
16 | #define PROG_FMT_DUP_EXTENT 5 /* Phase 4 */ | |
17 | #define PROG_FMT_INIT_RTEXT 6 | |
18 | #define PROG_FMT_RESET_RTBM 7 | |
19 | #define PROG_FMT_DUP_BLOCKS 8 | |
20 | ||
21 | #define PROG_FMT_REBUILD_AG 9 /* Phase 5 */ | |
22 | ||
23 | #define PROG_FMT_TRAVERSAL 10 /* Phase 6 */ | |
2556c98b BN |
24 | #define PROG_FMT_TRAVERSSUB 11 |
25 | #define PROG_FMT_DISCONINODE 12 | |
06fbdda9 MV |
26 | |
27 | #define PROGRESS_FMT_CORR_LINK 13 /* Phase 7 */ | |
28 | #define PROGRESS_FMT_VRFY_LINK 14 | |
29 | ||
30 | #define DURATION_BUF_SIZE 512 | |
31 | ||
32 | extern void init_progress_rpt(void); | |
33 | extern void stop_progress_rpt(void); | |
34 | extern void summary_report(void); | |
14f8b681 DW |
35 | extern int set_progress_msg(int report, uint64_t total); |
36 | extern uint64_t print_final_rpt(void); | |
06fbdda9 MV |
37 | extern char *timestamp(int end, int phase, char *buf); |
38 | extern char *duration(int val, char *buf); | |
39 | extern int do_parallel; | |
40 | ||
2556c98b | 41 | #define PROG_RPT_INC(a,b) if (ag_stride && prog_rpt_done) (a) += (b) |
06fbdda9 MV |
42 | |
43 | #endif /* _XFS_REPAIR_PROGRESS_RPT_H_ */ |