mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-04-13 23:21:46 +03:00
Linux 7.0: also set setlease handler on directories (#18331)
It turns out the kernel can also take directory leases, most notably in
the NFS server. Without a setlease handler on the directory file ops,
attempts to open a directory over NFS can fail with EINVAL.
Adding a directory setlease handler was missed in 168023b603. This fixes
that, allowing directories to be properly accessed over NFS.
Sponsored-by: TrueNAS
Reported-by: Satadru Pramanik <satadru@gmail.com>
Signed-off-by: Rob Norris <rob.norris@truenas.com>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
parent
4655bdd8ab
commit
d8c08a1cea
@ -1268,6 +1268,7 @@ const struct file_operations zpl_dir_file_operations = {
|
|||||||
.read = generic_read_dir,
|
.read = generic_read_dir,
|
||||||
.iterate_shared = zpl_iterate,
|
.iterate_shared = zpl_iterate,
|
||||||
.fsync = zpl_fsync,
|
.fsync = zpl_fsync,
|
||||||
|
.setlease = generic_setlease,
|
||||||
.unlocked_ioctl = zpl_ioctl,
|
.unlocked_ioctl = zpl_ioctl,
|
||||||
#ifdef CONFIG_COMPAT
|
#ifdef CONFIG_COMPAT
|
||||||
.compat_ioctl = zpl_compat_ioctl,
|
.compat_ioctl = zpl_compat_ioctl,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user