]> Git Repo - qemu.git/blobdiff - block/blkdebug.c
block: Error parameter for open functions
[qemu.git] / block / blkdebug.c
index 5d33e036086eab82aa6d2c39c73b33b478e7c251..be948b2fdd8cc261c1013110e8c646e3ee9d5562 100644 (file)
@@ -350,7 +350,8 @@ static QemuOptsList runtime_opts = {
     },
 };
 
-static int blkdebug_open(BlockDriverState *bs, QDict *options, int flags)
+static int blkdebug_open(BlockDriverState *bs, QDict *options, int flags,
+                         Error **errp)
 {
     BDRVBlkdebugState *s = bs->opaque;
     QemuOpts *opts;
@@ -386,8 +387,10 @@ static int blkdebug_open(BlockDriverState *bs, QDict *options, int flags)
         goto fail;
     }
 
-    ret = bdrv_file_open(&bs->file, filename, NULL, flags);
+    ret = bdrv_file_open(&bs->file, filename, NULL, flags, &local_err);
     if (ret < 0) {
+        qerror_report_err(local_err);
+        error_free(local_err);
         goto fail;
     }
 
This page took 0.023126 seconds and 4 git commands to generate.