mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
fix(mount): do not truncate shares not zfs mount
When running zfs share -a resetting the exports.d/zfs.exports makes sense the get a clean state. Truncating was also called with zfs mount which would not populate the file again. Add test to verify shares persist after mount -a. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Stefan Lendl <s.lendl@proxmox.com> Closes #15607 Closes #15660
This commit is contained in:
@@ -316,7 +316,8 @@ tags = ['functional', 'cli_root', 'zfs_set']
|
||||
[tests/functional/cli_root/zfs_share]
|
||||
tests = ['zfs_share_001_pos', 'zfs_share_002_pos', 'zfs_share_003_pos',
|
||||
'zfs_share_004_pos', 'zfs_share_006_pos', 'zfs_share_008_neg',
|
||||
'zfs_share_010_neg', 'zfs_share_011_pos', 'zfs_share_concurrent_shares']
|
||||
'zfs_share_010_neg', 'zfs_share_011_pos', 'zfs_share_concurrent_shares',
|
||||
'zfs_share_after_mount']
|
||||
tags = ['functional', 'cli_root', 'zfs_share']
|
||||
|
||||
[tests/functional/cli_root/zfs_snapshot]
|
||||
|
||||
Reference in New Issue
Block a user