]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - scrub/fscounters.h
xfs: fix maxicount division by zero error
[thirdparty/xfsprogs-dev.git] / scrub / fscounters.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_FSCOUNTERS_H_
7 #define XFS_SCRUB_FSCOUNTERS_H_
8
9 int scrub_scan_estimate_blocks(struct scrub_ctx *ctx,
10 unsigned long long *d_blocks, unsigned long long *d_bfree,
11 unsigned long long *r_blocks, unsigned long long *r_bfree,
12 unsigned long long *f_files, unsigned long long *f_free);
13 int scrub_count_all_inodes(struct scrub_ctx *ctx, uint64_t *count);
14
15 #endif /* XFS_SCRUB_FSCOUNTERS_H_ */