1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (C) 2019 Oracle. All Rights Reserved.
4 * Author: Darrick J. Wong <darrick.wong@oracle.com>
10 /* Bulkstat a single inode. Returns zero or a positive error code. */
12 xfrog_bulkstat_single(
15 struct xfs_bstat
*ubuffer
)
18 struct xfs_fsop_bulkreq bulkreq
= {
26 ret
= ioctl(xfd
->fd
, XFS_IOC_FSBULKSTAT_SINGLE
, &bulkreq
);
32 /* Bulkstat a bunch of inodes. Returns zero or a positive error code. */
38 struct xfs_bstat
*ubuffer
,
41 struct xfs_fsop_bulkreq bulkreq
= {
42 .lastip
= (__u64
*)lastino
,
45 .ocount
= (__s32
*)ocount
,
49 ret
= ioctl(xfd
->fd
, XFS_IOC_FSBULKSTAT
, &bulkreq
);
56 * Query inode allocation bitmask information. Returns zero or a positive
64 struct xfs_inogrp
*ubuffer
,
67 struct xfs_fsop_bulkreq bulkreq
= {
68 .lastip
= (__u64
*)lastino
,
71 .ocount
= (__s32
*)ocount
,
75 ret
= ioctl(xfd
->fd
, XFS_IOC_FSINUMBERS
, &bulkreq
);