Skip to content

Commit 1ece2c4

Browse files
jtlaytonjwrdegoede
authored andcommitted
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]>
1 parent 0141d68 commit 1ece2c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/vboxsf/file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ const struct file_operations vboxsf_reg_fops = {
218218
.release = vboxsf_file_release,
219219
.fsync = noop_fsync,
220220
.splice_read = filemap_splice_read,
221+
.setlease = simple_nosetlease,
221222
};
222223

223224
const struct inode_operations vboxsf_reg_iops = {

0 commit comments

Comments
 (0)