]> git.baikalelectronics.ru Git - kernel.git/commit
fs: prevent doing FALLOC_FL_ZERO_RANGE on append only file
authorLukas Czerner <lczerner@redhat.com>
Sat, 12 Apr 2014 13:51:34 +0000 (09:51 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 12 Apr 2014 13:51:34 +0000 (09:51 -0400)
commitf10cccc4abf4cfedd0e4b5ecff865faabd76c0ef
tree92a35f28bac2ae3893db6fc7be39e461eabfd588
parent4361481b390df5d1e9f952b78a02d2c08675abef
fs: prevent doing FALLOC_FL_ZERO_RANGE on append only file

Currently punch hole and collapse range fallocate operation are not
allowed on append only file. This should be case for zero range as well.
Fix it by allowing only pure fallocate (possibly with keep size set).

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/open.c