skiselkov commented on this pull request.


> +                         spa_get_force_trim(vd->vdev_spa) !=
+                           SPA_FORCE_TRIM_ON) {
+                               zio->io_error = SET_ERROR(ENOTSUP);
+                               break;
+                       }
+
+                       /*
+                        * zio->io_private contains a dkioc_free_list_t
+                        * specifying which offsets are to be freed
+                        */
+                       ASSERT(zio->io_dfl != NULL);
+                       error = ldi_ioctl(dvd->vd_lh, zio->io_cmd,
+                           (uintptr_t)zio->io_dfl, FKIOCTL, kcred, NULL);
+
+                       if (error == ENOTSUP || error == ENOTTY)
+                               vd->vdev_notrim = B_TRUE;

Ok, I'll move it there.

-- 
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/172#discussion_r116137740
------------------------------------------
openzfs-developer
Archives: https://openzfs.topicbox.com/groups/developer/
Powered by Topicbox: https://topicbox.com

Reply via email to