Debian Codegraph @

src/include/override/linux/xfs.h

raw
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 #pragma once
3
4 #include <linux/ioctl.h>
5 #include <stdint.h>
6
7 /* This is currently not exported in the public kernel headers, but the libxfs library code part of xfsprogs
8 * defines it as public header */
9
10 #ifndef XFS_IOC_FSGEOMETRY
11 #define XFS_IOC_FSGEOMETRY _IOR ('X', 124, struct xfs_fsop_geom)
12
13 typedef struct xfs_fsop_geom {
14 uint32_t blocksize;
15 uint32_t rtextsize;
16 uint32_t agblocks;
17 uint32_t agcount;
18 uint32_t logblocks;
19 uint32_t sectsize;
20 uint32_t inodesize;
21 uint32_t imaxpct;
22 uint64_t datablocks;
23 uint64_t rtblocks;
24 uint64_t rtextents;
25 uint64_t logstart;
26 uint8_t uuid[16];
27 uint32_t sunit;
28 uint32_t swidth;
29 int32_t version;
30 uint32_t flags;
31 uint32_t logsectsize;
32 uint32_t rtsectsize;
33 uint32_t dirblocksize;
34 uint32_t logsunit;
35 } xfs_fsop_geom_t;
36 #endif
37
38 #ifndef XFS_IOC_FSGROWFSDATA
39 #define XFS_IOC_FSGROWFSDATA _IOW ('X', 110, struct xfs_growfs_data)
40
41 typedef struct xfs_growfs_data {
42 uint64_t newblocks;
43 uint32_t imaxpct;
44 } xfs_growfs_data_t;
45 #endif