2 * Copyright (c) 2000-2003 Silicon Graphics, Inc.
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it would be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
28 #ifdef HAVE_XFS_LIBXFS_H
29 #include <xfs/libxfs.h>
36 #ifdef HAVE_ATTR_ATTRIBUTES_H
37 #include <attr/attributes.h>
40 #ifdef HAVE_SYS_TYPES_H
41 #include <sys/types.h>
44 #ifdef HAVE_SYS_STAT_H
48 #ifdef HAVE_SYS_STATVFS_H
49 #include <sys/statvfs.h>
52 #ifdef HAVE_SYS_TIME_H
56 #ifdef HAVE_SYS_IOCTL_H
57 #include <sys/ioctl.h>
60 #ifdef HAVE_SYS_WAIT_H
88 #ifdef HAVE_SYS_FCNTL_H
104 #ifdef HAVE_SYS_PARAM_H
105 #include <sys/param.h>
108 #ifdef HAVE_SYS_ATTRIBUTES_H
109 #include <sys/attributes.h>
125 #ifdef HAVE_STRINGS_H
129 #ifdef HAVE_SYS_SYSSGI_H
130 #include <sys/syssgi.h>
133 #ifdef HAVE_SYS_UUID_H
134 #include <sys/uuid.h>
137 #ifdef HAVE_SYS_FS_XFS_FSOPS_H
138 #include <sys/fs/xfs_fsops.h>
141 #ifdef HAVE_SYS_FS_XFS_ITABLE_H
142 #include <sys/fs/xfs_itable.h>
145 #ifdef HAVE_BSTRING_H
149 #ifdef HAVE_SYS_PARAM_H
150 #include <sys/param.h>
153 #ifdef HAVE_LINUX_FALLOC_H
154 #include <linux/falloc.h>
156 #ifndef FALLOC_FL_KEEP_SIZE
157 #define FALLOC_FL_KEEP_SIZE 0x01
160 #ifndef FALLOC_FL_PUNCH_HOLE
161 #define FALLOC_FL_PUNCH_HOLE 0x02
164 #ifndef FALLOC_FL_NO_HIDE_STALE
165 #define FALLOC_FL_NO_HIDE_STALE 0x04
168 #ifndef FALLOC_FL_COLLAPSE_RANGE
169 #define FALLOC_FL_COLLAPSE_RANGE 0x08
172 #ifndef FALLOC_FL_ZERO_RANGE
173 #define FALLOC_FL_ZERO_RANGE 0x10
176 #ifndef FALLOC_FL_INSERT_RANGE
177 #define FALLOC_FL_INSERT_RANGE 0x20
180 #endif /* HAVE_LINUX_FALLOC_H */
182 #ifdef HAVE_SYS_MMAN_H
183 #include <sys/mman.h>
186 #endif /* GLOBAL_H */