falloc.h 663 B

1234567891011121314151617181920212223242526272829
  1. #ifndef _FALLOC_H_
  2. #define _FALLOC_H_
  3. #define FALLOC_FL_KEEP_SIZE 0x01 /* default is extend size */
  4. #define FALLOC_FL_PUNCH_HOLE 0x02 /* de-allocates range */
  5. #ifdef __KERNEL__
  6. /*
  7. * Space reservation ioctls and argument structure
  8. * are designed to be compatible with the legacy XFS ioctls.
  9. */
  10. struct space_resv {
  11. __s16 l_type;
  12. __s16 l_whence;
  13. __s64 l_start;
  14. __s64 l_len; /* len == 0 means until end of file */
  15. __s32 l_sysid;
  16. __u32 l_pid;
  17. __s32 l_pad[4]; /* reserved area */
  18. };
  19. #define FS_IOC_RESVSP _IOW('X', 40, struct space_resv)
  20. #define FS_IOC_RESVSP64 _IOW('X', 42, struct space_resv)
  21. #endif /* __KERNEL__ */
  22. #endif /* _FALLOC_H_ */