]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fallocate: introduce an option -c to support COLLAPSE_RANGE
authorDongsu Park <dongsu.park@profitbricks.com>
Thu, 27 Feb 2014 10:35:07 +0000 (11:35 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 18 Apr 2014 10:49:39 +0000 (12:49 +0200)
commit83cc932d7412cb9d23bf9f06a9a54c8566e1a788
tree45d2fbf9b7ac14d08d0f5bd66e44ddf2c8e1eda0
parent2dc0c6283b41a8331de13092c7287a3cb7160a0a
fallocate: introduce an option -c to support COLLAPSE_RANGE

Introduce a new option -c (or --collapse-range) to support a new flag
FALLOC_FL_COLLAPSE_RANGE for fallocate(2). It will nullify a particular
range [offset, offset+len] by shifting extents beyond the range to the
beginning of the hole.

Cc: Lukas Czerner <lczerner@redhat.com>
Cc: Namjae Jeon <namjae.jeon@samsung.com>
Cc: Ashish Sangwan <a.sangwan@samsung.com>
Signed-off-by: Dongsu Park <dongsu.park@profitbricks.com>
sys-utils/fallocate.1
sys-utils/fallocate.c