Amit Arora | 97ac735 | 2007-07-17 21:42:44 -0400 | [diff] [blame] | 1 | #ifndef _FALLOC_H_ |
| 2 | #define _FALLOC_H_ |
| 3 | |
| 4 | #define FALLOC_FL_KEEP_SIZE 0x01 /* default is extend size */ |
Josef Bacik | 79124f18 | 2010-11-17 20:46:15 -0500 | [diff] [blame] | 5 | #define FALLOC_FL_PUNCH_HOLE 0x02 /* de-allocates range */ |
Amit Arora | 97ac735 | 2007-07-17 21:42:44 -0400 | [diff] [blame] | 6 | |
Ankit Jain | 3e63cbb | 2009-06-19 14:28:07 -0400 | [diff] [blame] | 7 | #ifdef __KERNEL__ |
| 8 | |
| 9 | /* |
| 10 | * Space reservation ioctls and argument structure |
| 11 | * are designed to be compatible with the legacy XFS ioctls. |
| 12 | */ |
| 13 | struct 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 Arora | 97ac735 | 2007-07-17 21:42:44 -0400 | [diff] [blame] | 28 | #endif /* _FALLOC_H_ */ |