blob: 73e0b628e058cc28c8ae4eab030ff88f6f523d58 [file] [log] [blame]
Amit Arora97ac7352007-07-17 21:42:44 -04001#ifndef _FALLOC_H_
2#define _FALLOC_H_
3
4#define FALLOC_FL_KEEP_SIZE 0x01 /* default is extend size */
Josef Bacik79124f12010-11-17 20:46:15 -05005#define FALLOC_FL_PUNCH_HOLE 0x02 /* de-allocates range */
Amit Arora97ac7352007-07-17 21:42:44 -04006
Ankit Jain3e63cbb2009-06-19 14:28:07 -04007#ifdef __KERNEL__
8
9/*
10 * Space reservation ioctls and argument structure
11 * are designed to be compatible with the legacy XFS ioctls.
12 */
13struct space_resv {
14 __s16 l_type;
15 __s16 l_whence;
16 __s64 l_start;
17 __s64 l_len; /* len == 0 means until end of file */
18 __s32 l_sysid;
19 __u32 l_pid;
20 __s32 l_pad[4]; /* reserved area */
21};
22
23#define FS_IOC_RESVSP _IOW('X', 40, struct space_resv)
24#define FS_IOC_RESVSP64 _IOW('X', 42, struct space_resv)
25
26#endif /* __KERNEL__ */
27
Amit Arora97ac7352007-07-17 21:42:44 -040028#endif /* _FALLOC_H_ */