Skip to content

Commit

Permalink
Fix error message on failure to clear
Browse files Browse the repository at this point in the history
Signed-off-by: Don Brady <don.brady@klarasystems.com>
  • Loading branch information
don-brady committed Apr 26, 2024
1 parent ce6902a commit 525a5a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/zfs_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -5819,7 +5819,7 @@ zfs_ioc_clear(zfs_cmd_t *zc)
*/
if (spa_multihost(spa) && spa_suspended(spa) &&
spa_mmp_remote_host_activity(spa)) {
return (SET_ERROR(EINVAL));
return (SET_ERROR(EREMOTEIO));
}

spa_vdev_state_enter(spa, SCL_NONE);
Expand Down

0 comments on commit 525a5a2

Please sign in to comment.