diff options
author | Jeff Layton <[email protected]> | 2024-03-19 12:32:04 -0400 |
---|---|---|
committer | Hans de Goede <[email protected]> | 2024-04-03 16:06:39 +0200 |
commit | 1ece2c43b88660ddbdf8ecb772e9c41ed9cda3dd (patch) | |
tree | 7b5efe0050e215e596445849dfee35c0882c3632 | |
parent | 0141d68f86d78953fb4c3983d666e92f7df4a43d (diff) |
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: Jeff Layton <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Hans de Goede <[email protected]>
Signed-off-by: Hans de Goede <[email protected]>
-rw-r--r-- | fs/vboxsf/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/vboxsf/file.c b/fs/vboxsf/file.c index 2307f8037efc..118dedef8ebe 100644 --- a/fs/vboxsf/file.c +++ b/fs/vboxsf/file.c @@ -218,6 +218,7 @@ const struct file_operations vboxsf_reg_fops = { .release = vboxsf_file_release, .fsync = noop_fsync, .splice_read = filemap_splice_read, + .setlease = simple_nosetlease, }; const struct inode_operations vboxsf_reg_iops = { |