Print this page
12764 Holes prevent TRIM

@@ -415,11 +415,12 @@
             &child, &children);
 
         if (children == 0) {
                 char *path = zpool_vdev_name(g_zfs, zhp, nvroot, 0);
 
-                if (strcmp(path, VDEV_TYPE_INDIRECT) != 0)
+                if (strcmp(path, VDEV_TYPE_INDIRECT) != 0 &&
+                    strcmp(path, VDEV_TYPE_HOLE) != 0)
                         fnvlist_add_boolean(res, path);
 
                 free(path);
                 return;
         }