1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2003 Silicon Graphics, Inc.
16 #ifdef HAVE_XFS_LIBXFS_H
17 #include <xfs/libxfs.h>
24 #ifdef HAVE_ATTR_ATTRIBUTES_H
25 #include <attr/attributes.h>
28 #ifdef HAVE_SYS_TYPES_H
29 #include <sys/types.h>
32 #ifdef HAVE_SYS_STAT_H
36 #ifdef HAVE_SYS_STATVFS_H
37 #include <sys/statvfs.h>
40 #ifdef HAVE_SYS_TIME_H
44 #ifdef HAVE_SYS_IOCTL_H
45 #include <sys/ioctl.h>
48 #ifdef HAVE_SYS_WAIT_H
76 #ifdef HAVE_SYS_FCNTL_H
92 #ifdef HAVE_SYS_PARAM_H
93 #include <sys/param.h>
96 #ifdef HAVE_SYS_ATTRIBUTES_H
97 #include <sys/attributes.h>
113 #ifdef HAVE_STRINGS_H
117 #ifdef HAVE_SYS_SYSSGI_H
118 #include <sys/syssgi.h>
121 #ifdef HAVE_SYS_UUID_H
122 #include <sys/uuid.h>
125 #ifdef HAVE_SYS_FS_XFS_FSOPS_H
126 #include <sys/fs/xfs_fsops.h>
129 #ifdef HAVE_SYS_FS_XFS_ITABLE_H
130 #include <sys/fs/xfs_itable.h>
133 #ifdef HAVE_BSTRING_H
137 #ifdef HAVE_SYS_PARAM_H
138 #include <sys/param.h>
141 #ifdef HAVE_LINUX_FALLOC_H
142 #include <linux/falloc.h>
144 #ifndef FALLOC_FL_KEEP_SIZE
145 #define FALLOC_FL_KEEP_SIZE 0x01
148 #ifndef FALLOC_FL_PUNCH_HOLE
149 #define FALLOC_FL_PUNCH_HOLE 0x02
152 #ifndef FALLOC_FL_NO_HIDE_STALE
153 #define FALLOC_FL_NO_HIDE_STALE 0x04
156 #ifndef FALLOC_FL_COLLAPSE_RANGE
157 #define FALLOC_FL_COLLAPSE_RANGE 0x08
160 #ifndef FALLOC_FL_ZERO_RANGE
161 #define FALLOC_FL_ZERO_RANGE 0x10
164 #ifndef FALLOC_FL_INSERT_RANGE
165 #define FALLOC_FL_INSERT_RANGE 0x20
168 #endif /* HAVE_LINUX_FALLOC_H */
170 #ifdef HAVE_SYS_MMAN_H
171 #include <sys/mman.h>
174 #endif /* GLOBAL_H */