]>
git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - scrub/progress.h
1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2018 Oracle. All Rights Reserved.
4 * Author: Darrick J. Wong <darrick.wong@oracle.com>
6 #ifndef XFS_SCRUB_PROGRESS_H_
7 #define XFS_SCRUB_PROGRESS_H_
9 #define CLEAR_EOL "\033[K"
10 #define START_IGNORE '\001'
11 #define END_IGNORE '\002'
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
);
19 #endif /* XFS_SCRUB_PROGRESS_H_ */