]> Git Repo - qemu.git/blobdiff - block/blkverify.c
block/commit: refactor commit to use job callbacks
[qemu.git] / block / blkverify.c
index 754cc9e85769c6921528c45d7ce5d86089bf1d30..89bf4386e32eee170a42999beaf5d20d8c9118ee 100644 (file)
@@ -80,7 +80,7 @@ static void blkverify_parse_filename(const char *filename, QDict *options,
     }
 
     /* TODO Implement option pass-through and set raw.filename here */
-    raw_path = qstring_from_substr(filename, 0, c - filename - 1);
+    raw_path = qstring_from_substr(filename, 0, c - filename);
     qdict_put(options, "x-raw", raw_path);
 
     /* TODO Allow multi-level nesting and set file.filename here */
@@ -141,6 +141,9 @@ static int blkverify_open(BlockDriverState *bs, QDict *options, int flags,
         goto fail;
     }
 
+    bs->supported_write_flags = BDRV_REQ_WRITE_UNCHANGED;
+    bs->supported_zero_flags = BDRV_REQ_WRITE_UNCHANGED;
+
     ret = 0;
 fail:
     qemu_opts_del(opts);
This page took 0.020651 seconds and 4 git commands to generate.