MFV r329776: 8477 Assertion failed in vdev_state_dirty(): spa_writeable(spa)
illumos/illumos-gate@f4c1745bd6
Illumos 4080 allows "zpool clear" to work on readonly pools: i don't think
this is the intended behaviour, we shouldn't be allowed to clear readonly
pools. Probably.
A fix is already in the ZFS on Linux repository to addess this issue:
92e43c1718
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Author: loli10K <ezomori.nozomu@gmail.com>
This commit is contained in:
commit
a33ba3dbde
@ -6172,7 +6172,7 @@ zfs_ioctl_init(void)
|
||||
zfs_secpolicy_config, B_TRUE, POOL_CHECK_NONE);
|
||||
|
||||
zfs_ioctl_register_pool(ZFS_IOC_CLEAR, zfs_ioc_clear,
|
||||
zfs_secpolicy_config, B_TRUE, POOL_CHECK_NONE);
|
||||
zfs_secpolicy_config, B_TRUE, POOL_CHECK_READONLY);
|
||||
zfs_ioctl_register_pool(ZFS_IOC_POOL_REOPEN, zfs_ioc_pool_reopen,
|
||||
zfs_secpolicy_config, B_TRUE, POOL_CHECK_SUSPENDED);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user