]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block_int.h
block: Fix bdrv_has_zero_init
[mirror_qemu.git] / block_int.h
index f075a8cba5012f0fd85cf450e9ecccc994d42d24..7d5e7515d2be8e3e244a97ee66f295aa4da6daca 100644 (file)
@@ -127,8 +127,11 @@ struct BlockDriver {
 
     void (*bdrv_debug_event)(BlockDriverState *bs, BlkDebugEvent event);
 
-    /* Set if newly created images are not guaranteed to contain only zeros */
-    int no_zero_init;
+    /*
+     * Returns 1 if newly created images are guaranteed to contain only
+     * zeros, 0 otherwise.
+     */
+    int (*bdrv_has_zero_init)(BlockDriverState *bs);
 
     QLIST_ENTRY(BlockDriver) list;
 };