]>
Commit | Line | Data |
---|---|---|
959ef981 | 1 | // SPDX-License-Identifier: GPL-2.0+ |
ed60d210 DW |
2 | /* |
3 | * Copyright (C) 2018 Oracle. All Rights Reserved. | |
ed60d210 | 4 | * Author: Darrick J. Wong <darrick.wong@oracle.com> |
ed60d210 DW |
5 | */ |
6 | #ifndef XFS_SCRUB_PROGRESS_H_ | |
7 | #define XFS_SCRUB_PROGRESS_H_ | |
8 | ||
9 | #define CLEAR_EOL "\033[K" | |
10 | #define START_IGNORE '\001' | |
11 | #define END_IGNORE '\002' | |
12 | ||
d86e83b8 | 13 | int progress_init_phase(struct scrub_ctx *ctx, FILE *progress_fp, |
ed60d210 DW |
14 | unsigned int phase, uint64_t max, int rshift, |
15 | unsigned int nr_threads); | |
16 | void progress_end_phase(void); | |
17 | void progress_add(uint64_t x); | |
18 | ||
19 | #endif /* XFS_SCRUB_PROGRESS_H_ */ |