mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 10:37:35 +03:00
Fix 'zpool clear' on readonly pools
Illumos 4080 inadvertently allows 'zpool clear' on readonly pools: fix this by reintroducing a check (POOL_CHECK_READONLY) in zfs_ioc_clear registration code. Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: loli10K <ezomori.nozomu@gmail.com> Closes #6306
This commit is contained in:
@@ -200,7 +200,8 @@ tests = ['zpool_add_001_pos', 'zpool_add_002_pos', 'zpool_add_003_pos',
|
||||
tests = ['zpool_attach_001_neg', 'attach-o_ashift']
|
||||
|
||||
[tests/functional/cli_root/zpool_clear]
|
||||
tests = ['zpool_clear_001_pos', 'zpool_clear_002_neg', 'zpool_clear_003_neg']
|
||||
tests = ['zpool_clear_001_pos', 'zpool_clear_002_neg', 'zpool_clear_003_neg',
|
||||
'zpool_clear_readonly']
|
||||
|
||||
[tests/functional/cli_root/zpool_create]
|
||||
tests = ['zpool_create_001_pos', 'zpool_create_002_pos',
|
||||
|
||||
Reference in New Issue
Block a user