prashks commented on this pull request.


> +      */
+       vd->vdev_removing = B_TRUE;
+
+       vdev_dirty_leaves(vd, VDD_DTL, *txg);
+       vdev_config_dirty(vd);
+
+       spa_history_log_internal(spa, "vdev remove", NULL,
+           "%s vdev %llu (log) %s", spa_name(spa), vd->vdev_id,
+           (vd->vdev_path != NULL) ? vd->vdev_path : "-");
+
+       spa_vdev_config_exit(spa, NULL, *txg, 0, FTAG);
+
+       *txg = spa_vdev_config_enter(spa);
+
+       sysevent_t *ev = spa_event_create(spa, vd, NULL,
+           ESC_ZFS_VDEV_REMOVE_AUX);

Good catch, that should be VDEV_REMOVE_DEV and not AUX.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openzfs/openzfs/pull/482#discussion_r159796671
------------------------------------------
openzfs-developer
Archives: 
https://openzfs.topicbox.com/groups/developer/discussions/Teafc5ffabd7f916f-Mea2f46aa01ddfaf322b3fcee
Powered by Topicbox: https://topicbox.com

Reply via email to