falloc.h 753 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _FALLOC_H_
  2. #define _FALLOC_H_
  3. #include <uapi/linux/falloc.h>
  4. /*
  5. * Space reservation ioctls and argument structure
  6. * are designed to be compatible with the legacy XFS ioctls.
  7. */
  8. struct space_resv {
  9. __s16 l_type;
  10. __s16 l_whence;
  11. __s64 l_start;
  12. __s64 l_len; /* len == 0 means until end of file */
  13. __s32 l_sysid;
  14. __u32 l_pid;
  15. __s32 l_pad[4]; /* reserved area */
  16. };
  17. #define FS_IOC_RESVSP _IOW('X', 40, struct space_resv)
  18. #define FS_IOC_RESVSP64 _IOW('X', 42, struct space_resv)
  19. #define FALLOC_FL_SUPPORTED_MASK (FALLOC_FL_KEEP_SIZE | \
  20. FALLOC_FL_PUNCH_HOLE | \
  21. FALLOC_FL_COLLAPSE_RANGE | \
  22. FALLOC_FL_ZERO_RANGE | \
  23. FALLOC_FL_INSERT_RANGE | \
  24. FALLOC_FL_UNSHARE_RANGE)
  25. #endif /* _FALLOC_H_ */