]> asedeno.scripts.mit.edu Git - linux.git/commit
fuse: honor RLIMIT_FSIZE in fuse_file_fallocate
authorLiu Bo <bo.liu@linux.alibaba.com>
Wed, 17 Apr 2019 20:04:41 +0000 (04:04 +0800)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 24 Apr 2019 15:05:06 +0000 (17:05 +0200)
commit0cbade024ba501313da3b7e5dd2a188a6bc491b5
tree5766b4c3a874f5c58bf2ebc91baa9ae845c83f70
parent9de5be06d0a89ca97b5ab902694d42dfd2bb77d2
fuse: honor RLIMIT_FSIZE in fuse_file_fallocate

fstests generic/228 reported this failure that fuse fallocate does not
honor what 'ulimit -f' has set.

This adds the necessary inode_newsize_ok() check.

Signed-off-by: Liu Bo <bo.liu@linux.alibaba.com>
Fixes: 05ba1f082300 ("fuse: add FALLOCATE operation")
Cc: <stable@vger.kernel.org> # v3.5
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/file.c