ZTS: add libzfs_mnttab_cache test

This is the repro test from #18464, and confirms that when disabled, the
libzfs_mnttab_cache is discarded and reloaded on every lookup.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Co-authored-by: Prakash Surya <prakash.surya@perforce.com>
Signed-off-by: Rob Norris <rob.norris@truenas.com>
Closes #18466
Closes #18464
This commit is contained in:
Rob Norris
2026-04-29 16:53:21 +10:00
committed by Brian Behlendorf
parent a4a7df886f
commit 6748e7e65e
8 changed files with 142 additions and 2 deletions
+1 -1
View File
@@ -1150,7 +1150,7 @@ tests = ['zvol_swap_001_pos', 'zvol_swap_002_pos', 'zvol_swap_004_pos']
tags = ['functional', 'zvol', 'zvol_swap']
[tests/functional/libzfs]
tests = ['many_fds', 'libzfs_input']
tests = ['many_fds', 'libzfs_input', 'libzfs_mnttab_cache']
tags = ['functional', 'libzfs']
[tests/functional/log_spacemap]