linux/include/linux/falloc.h
<<
>>
Prefs
   1#ifndef _FALLOC_H_
   2#define _FALLOC_H_
   3
   4#define FALLOC_FL_KEEP_SIZE     0x01 /* default is extend size */
   5#define FALLOC_FL_PUNCH_HOLE    0x02 /* de-allocates range */
   6
   7#ifdef __KERNEL__
   8
   9/*
  10 * Space reservation ioctls and argument structure
  11 * are designed to be compatible with the legacy XFS ioctls.
  12 */
  13struct 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
  28#endif /* _FALLOC_H_ */
  29