prashks commented on this pull request.


> +             spa->spa_l2cache.sav_sync = B_TRUE;
+       } else if (vd != NULL && vd->vdev_islog) {
+               ASSERT(!locked);
+               error = spa_vdev_remove_log(vd, &txg);
+       } else if (vd != NULL) {
+               ASSERT(!locked);
+               error = spa_vdev_remove_top(vd, &txg);
+       } else {
+               /*
+                * There is no vdev of any kind with the specified guid.
+                */
+               error = SET_ERROR(ENOENT);
+       }
+
+       if (!locked)
+               return (spa_vdev_exit(spa, NULL, txg, error));

Thanks, i've fixed this.

-- 
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_r159796161
------------------------------------------
openzfs-developer
Archives: 
https://openzfs.topicbox.com/groups/developer/discussions/Teafc5ffabd7f916f-M8c7d058fabb25b62d69cf385
Powered by Topicbox: https://topicbox.com

Reply via email to