falloc.h 530 B

123456789101112131415161718192021222324
  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. #endif /* _FALLOC_H_ */