]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - scrub/progress.h
xfs_scrub: remove moveon from repair action list helpers
[thirdparty/xfsprogs-dev.git] / scrub / progress.h
1 // SPDX-License-Identifier: GPL-2.0+
2 /*
3 * Copyright (C) 2018 Oracle. All Rights Reserved.
4 * Author: Darrick J. Wong <darrick.wong@oracle.com>
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
13 int progress_init_phase(struct scrub_ctx *ctx, FILE *progress_fp,
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_ */