Amit Arora | 97ac735 | 2007-07-17 21:42:44 -0400 | [diff] [blame] | 1 | #ifndef _FALLOC_H_ |
| 2 | #define _FALLOC_H_ |
| 3 | |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 4 | #include <uapi/linux/falloc.h> |
Amit Arora | 97ac735 | 2007-07-17 21:42:44 -0400 | [diff] [blame] | 5 | |
Ankit Jain | 3e63cbb | 2009-06-19 14:28:07 -0400 | [diff] [blame] | 6 | |
| 7 | /* |
| 8 | * Space reservation ioctls and argument structure |
| 9 | * are designed to be compatible with the legacy XFS ioctls. |
| 10 | */ |
| 11 | struct space_resv { |
| 12 | __s16 l_type; |
| 13 | __s16 l_whence; |
| 14 | __s64 l_start; |
| 15 | __s64 l_len; /* len == 0 means until end of file */ |
| 16 | __s32 l_sysid; |
| 17 | __u32 l_pid; |
| 18 | __s32 l_pad[4]; /* reserved area */ |
| 19 | }; |
| 20 | |
| 21 | #define FS_IOC_RESVSP _IOW('X', 40, struct space_resv) |
| 22 | #define FS_IOC_RESVSP64 _IOW('X', 42, struct space_resv) |
| 23 | |
Amit Arora | 97ac735 | 2007-07-17 21:42:44 -0400 | [diff] [blame] | 24 | #endif /* _FALLOC_H_ */ |