]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - libfrog/bulkstat.h
xfs: fix maxicount division by zero error
[thirdparty/xfsprogs-dev.git] / libfrog / bulkstat.h
CommitLineData
f31b5e12
DW
1/* SPDX-License-Identifier: GPL-2.0-or-later */
2/*
3 * Copyright (c) 2019 Oracle, Inc.
4 * All Rights Reserved.
5 */
6#ifndef __LIBFROG_BULKSTAT_H__
7#define __LIBFROG_BULKSTAT_H__
8
9/* Bulkstat wrappers */
10struct xfs_bstat;
4cca629d
DW
11int xfrog_bulkstat_single(struct xfs_fd *xfd, uint64_t ino, unsigned int flags,
12 struct xfs_bulkstat *bulkstat);
13int xfrog_bulkstat(struct xfs_fd *xfd, struct xfs_bulkstat_req *req);
14
e6542132
DW
15int xfrog_bulkstat_alloc_req(uint32_t nr, uint64_t startino,
16 struct xfs_bulkstat_req **preq);
4cca629d
DW
17int xfrog_bulkstat_v5_to_v1(struct xfs_fd *xfd, struct xfs_bstat *bs1,
18 const struct xfs_bulkstat *bstat);
19void xfrog_bulkstat_v1_to_v5(struct xfs_fd *xfd, struct xfs_bulkstat *bstat,
20 const struct xfs_bstat *bs1);
f31b5e12 21
3c8276c4
DW
22void xfrog_bulkstat_set_ag(struct xfs_bulkstat_req *req, uint32_t agno);
23
621f3374 24struct xfs_inogrp;
b94a69ac
DW
25int xfrog_inumbers(struct xfs_fd *xfd, struct xfs_inumbers_req *req);
26
e6542132
DW
27int xfrog_inumbers_alloc_req(uint32_t nr, uint64_t startino,
28 struct xfs_inumbers_req **preq);
3c8276c4 29void xfrog_inumbers_set_ag(struct xfs_inumbers_req *req, uint32_t agno);
b94a69ac
DW
30void xfrog_inumbers_v5_to_v1(struct xfs_inogrp *ig1,
31 const struct xfs_inumbers *ig);
32void xfrog_inumbers_v1_to_v5(struct xfs_inumbers *ig,
33 const struct xfs_inogrp *ig1);
621f3374 34
f31b5e12 35#endif /* __LIBFROG_BULKSTAT_H__ */