diff options
Diffstat (limited to 'include/uapi/linux/falloc.h')
| -rw-r--r-- | include/uapi/linux/falloc.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/uapi/linux/falloc.h b/include/uapi/linux/falloc.h index 3e445a760f14..b075f601919b 100644 --- a/include/uapi/linux/falloc.h +++ b/include/uapi/linux/falloc.h | |||
| @@ -58,4 +58,22 @@ | |||
| 58 | */ | 58 | */ |
| 59 | #define FALLOC_FL_INSERT_RANGE 0x20 | 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 | #endif /* _UAPI_FALLOC_H_ */ | 79 | #endif /* _UAPI_FALLOC_H_ */ |
