]> git.hungrycats.org Git - linux/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)
committerBen Hutchings <ben@decadent.org.uk>
Mon, 23 Sep 2019 20:11:48 +0000 (21:11 +0100)
commite09925b72cc58decfc28f8cf183a24198fba4864
treef7d7cdcc4fdcf487b22baacc680fbdcbac865125
parentfe629761087718c69d593887c80964f70df4d0dd
fuse: honor RLIMIT_FSIZE in fuse_file_fallocate

commit 0cbade024ba501313da3b7e5dd2a188a6bc491b5 upstream.

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")
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
fs/fuse/file.c