Bug #4080
zpool clear fails to clear pool
Start date:
2013-08-27
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
Description
Analysis by George Wilson:
Yesterday I hit an issue that caused the pool to suspend. After fixing the issue I tried to resume the I/Os by issuing a 'spool clear' on the pool. This failed indicating the pool was suspended. It never even tried to resume the I/Os. Investigating this failure I found this: static void zfs_ioctl_init(void) { <snip> zfs_ioctl_register_pool(ZFS_IOC_CLEAR, zfs_ioc_clear, zfs_secpolicy_config, B_TRUE, POOL_CHECK_SUSPENDED); The fact that the clear action is checking to see if the pool is suspended is wrong.
Related issues