diff options
| author | Dave Chinner <david@fromorbit.com> | 2015-03-25 00:12:53 -0400 |
|---|---|---|
| committer | Dave Chinner <david@fromorbit.com> | 2015-03-25 00:12:53 -0400 |
| commit | a448f8f1b744611fb1867ea811170cca2a9a6588 (patch) | |
| tree | 288e292c7134d3d04ab1ef77cd7798a08276812c /include/uapi/linux | |
| parent | 2b93681f593577df6fcb9af61947beaace071b74 (diff) | |
| parent | a904b1ca5751faf5ece8600e18cd3b674afcca1b (diff) | |
Merge branch 'fallocate-insert-range' into for-next
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/falloc.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/uapi/linux/falloc.h b/include/uapi/linux/falloc.h index d1197ae3723c..3e445a760f14 100644 --- a/include/uapi/linux/falloc.h +++ b/include/uapi/linux/falloc.h | |||
| @@ -41,4 +41,21 @@ | |||
| 41 | */ | 41 | */ |
| 42 | #define FALLOC_FL_ZERO_RANGE 0x10 | 42 | #define FALLOC_FL_ZERO_RANGE 0x10 |
| 43 | 43 | ||
| 44 | /* | ||
| 45 | * FALLOC_FL_INSERT_RANGE is use to insert space within the file size without | ||
| 46 | * overwriting any existing data. The contents of the file beyond offset are | ||
| 47 | * shifted towards right by len bytes to create a hole. As such, this | ||
| 48 | * operation will increase the size of the file by len bytes. | ||
| 49 | * | ||
| 50 | * Different filesystems may implement different limitations on the granularity | ||
| 51 | * of the operation. Most will limit operations to filesystem block size | ||
| 52 | * boundaries, but this boundary may be larger or smaller depending on | ||
| 53 | * the filesystem and/or the configuration of the filesystem or file. | ||
| 54 | * | ||
| 55 | * Attempting to insert space using this flag at OR beyond the end of | ||
| 56 | * the file is considered an illegal operation - just use ftruncate(2) or | ||
| 57 | * fallocate(2) with mode 0 for such type of operations. | ||
| 58 | */ | ||
| 59 | #define FALLOC_FL_INSERT_RANGE 0x20 | ||
| 60 | |||
| 44 | #endif /* _UAPI_FALLOC_H_ */ | 61 | #endif /* _UAPI_FALLOC_H_ */ |
