Commit 1ece2c43 authored by Jeff Layton's avatar Jeff Layton Committed by Hans de Goede

vboxsf: explicitly deny setlease attempts

vboxsf does not break leases on its own, so it can't properly handle the
case where the hypervisor changes the data. Don't allow file leases on
vboxsf.
Signed-off-by: default avatarJeff Layton <jlayton@kernel.org>
Link: https://lore.kernel.org/r/20240319-setlease-v1-1-5997d67e04b3@kernel.orgReviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 0141d68f
...@@ -218,6 +218,7 @@ const struct file_operations vboxsf_reg_fops = { ...@@ -218,6 +218,7 @@ const struct file_operations vboxsf_reg_fops = {
.release = vboxsf_file_release, .release = vboxsf_file_release,
.fsync = noop_fsync, .fsync = noop_fsync,
.splice_read = filemap_splice_read, .splice_read = filemap_splice_read,
.setlease = simple_nosetlease,
}; };
const struct inode_operations vboxsf_reg_iops = { const struct inode_operations vboxsf_reg_iops = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment