blob: d39b824a780c2b48016e38370e36e039d192e90f [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 Bacik79124f182010-11-17 20:46:15 -05005#define FALLOC_FL_PUNCH_HOLE 0x02 /* de-allocates range */
Theodore Ts'obbdd6802012-09-27 09:29:33 -04006#define FALLOC_FL_NO_HIDE_STALE 0x04 /* reserved codepoint */
Amit Arora97ac7352007-07-17 21:42:44 -04007
Ankit Jain3e63cbb2009-06-19 14:28:07 -04008#ifdef __KERNEL__
9
10/*
11 * Space reservation ioctls and argument structure
12 * are designed to be compatible with the legacy XFS ioctls.
13 */
14struct space_resv {
15 __s16 l_type;
16 __s16 l_whence;
17 __s64 l_start;
18 __s64 l_len; /* len == 0 means until end of file */
19 __s32 l_sysid;
20 __u32 l_pid;
21 __s32 l_pad[4]; /* reserved area */
22};
23
24#define FS_IOC_RESVSP _IOW('X', 40, struct space_resv)
25#define FS_IOC_RESVSP64 _IOW('X', 42, struct space_resv)
26
27#endif /* __KERNEL__ */
28
Amit Arora97ac7352007-07-17 21:42:44 -040029#endif /* _FALLOC_H_ */