Showing the changes to include/uapi (3 of 436 files). Show all
Unified · Split
| @@ -58,4 +58,22 @@ · 57 unmodified lines | ||
| 58 | 58 | */ |
| 59 | 59 | #define FALLOC_FL_INSERT_RANGE 0x20 |
| 60 | 60 | |
| 61 | +/* | |
| 62 | + * FALLOC_FL_UNSHARE_RANGE is used to unshare shared blocks within the | |
| 63 | + * file size without overwriting any existing data. The purpose of this | |
| 64 | + * call is to preemptively reallocate any blocks that are subject to | |
| 65 | + * copy-on-write. | |
| 66 | + * | |
| 67 | + * Different filesystems may implement different limitations on the | |
| 68 | + * granularity of the operation. Most will limit operations to filesystem | |
| 69 | + * block size boundaries, but this boundary may be larger or smaller | |
| 70 | + * depending on the filesystem and/or the configuration of the filesystem | |
| 71 | + * or file. | |
| 72 | + * | |
| 73 | + * This flag can only be used with allocate-mode fallocate, which is | |
| 74 | + * to say that it cannot be used with the punch, zero, collapse, or | |
| 75 | + * insert range modes. | |
| 76 | + */ | |
| 77 | +#define FALLOC_FL_UNSHARE_RANGE 0x40 | |
| 78 | + | |
| 61 | 79 | #endif /* _UAPI_FALLOC_H_ */ |
| @@ -158,7 +158,8 @@ struct fsxattr { · 157 unmodified lines | ||
| 158 | 158 | __u32 fsx_extsize; /* extsize field value (get/set)*/ |
| 159 | 159 | __u32 fsx_nextents; /* nextents field value (get) */ |
| 160 | 160 | __u32 fsx_projid; /* project identifier (get/set) */ |
| 161 | − unsigned char fsx_pad[12]; | |
| 161 | + __u32 fsx_cowextsize; /* CoW extsize field value (get/set)*/ | |
| 162 | + unsigned char fsx_pad[8]; | |
| 162 | 163 | }; |
| 163 | 164 | |
| 164 | 165 | /* |
| @@ -179,6 +180,7 @@ struct fsxattr { · 14 unmodified lines | ||
| 179 | 180 | #define FS_XFLAG_NODEFRAG 0x00002000 /* do not defragment */ |
| 180 | 181 | #define FS_XFLAG_FILESTREAM 0x00004000 /* use filestream allocator */ |
| 181 | 182 | #define FS_XFLAG_DAX 0x00008000 /* use DAX for IO */ |
| 183 | +#define FS_XFLAG_COWEXTSIZE 0x00010000 /* CoW extent size allocator hint */ | |
| 182 | 184 | #define FS_XFLAG_HASATTR 0x80000000 /* no DIFLAG for this */ |
| 183 | 185 | |
| 184 | 186 | /* the read-only stuff doesn't really belong here, but any other place is |
| @@ -39,8 +39,9 @@ · 38 unmodified lines | ||
| 39 | 39 | #define NFS4_FH_VOL_MIGRATION 0x0004 |
| 40 | 40 | #define NFS4_FH_VOL_RENAME 0x0008 |
| 41 | 41 | |
| 42 | −#define NFS4_OPEN_RESULT_CONFIRM 0x0002 | |
| 43 | −#define NFS4_OPEN_RESULT_LOCKTYPE_POSIX 0x0004 | |
| 42 | +#define NFS4_OPEN_RESULT_CONFIRM 0x0002 | |
| 43 | +#define NFS4_OPEN_RESULT_LOCKTYPE_POSIX 0x0004 | |
| 44 | +#define NFS4_OPEN_RESULT_MAY_NOTIFY_LOCK 0x0020 | |
| 44 | 45 | |
| 45 | 46 | #define NFS4_SHARE_ACCESS_MASK 0x000F |
| 46 | 47 | #define NFS4_SHARE_ACCESS_READ 0x0001 |