Linux 7.0: explicitly set setlease handler to kernel implementation

The upcoming 7.0 kernel will no longer fall back to generic_setlease(),
instead returning EINVAL if .setlease is NULL. So, we set it explicitly.

To ensure that we catch any future kernel change, adds a sanity test for
F_SETLEASE and F_GETLEASE too. Since this is a Linux-specific test,
also a small adjustment to the test runner to allow OS-specific helper
programs.

Sponsored-by: TrueNAS
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@truenas.com>
Closes #18215
This commit is contained in:
Rob Norris
2026-02-23 06:39:06 +11:00
committed by GitHub
parent d11c661544
commit 168023b603
13 changed files with 275 additions and 7 deletions
+4 -1
View File
@@ -182,7 +182,7 @@ export ZFS_FILES='zdb
zfs_ids_to_path
zpool_influxdb'
export ZFSTEST_FILES='badsend
export ZFSTEST_FILES_COMMON='badsend
btree_test
chg_usr_exec
clonefile
@@ -241,3 +241,6 @@ export ZFSTEST_FILES='badsend
zfs_diff-socket
dosmode_readonly_write
idmap_util'
export ZFSTEST_FILES_LINUX='
setlease'