mirror_zfs/module/os
Rob Norris d8c08a1cea
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>
2026-03-17 15:28:30 -07:00
..
freebsd FreeBSD: Improve dmesg kernel message prefix 2026-03-09 10:17:23 -07:00
linux Linux 7.0: also set setlease handler on directories (#18331) 2026-03-17 15:28:30 -07:00