]> Git Repo - qemu.git/blobdiff - block/backup-top.c
block: Use child_of_bds in remaining places
[qemu.git] / block / backup-top.c
index f059617095d9bc15b6419775abaaf973b61680b0..8af2c5fe9b3abea32a6d69499e261b69ffd970ae 100644 (file)
@@ -215,8 +215,8 @@ BlockDriverState *bdrv_backup_top_append(BlockDriverState *source,
              source->supported_zero_flags);
 
     bdrv_ref(target);
-    state->target = bdrv_attach_child(top, target, "target", &child_file, 0,
-                                      errp);
+    state->target = bdrv_attach_child(top, target, "target", &child_of_bds,
+                                      BDRV_CHILD_DATA, errp);
     if (!state->target) {
         bdrv_unref(target);
         bdrv_unref(top);
This page took 0.021459 seconds and 4 git commands to generate.