Skip to contentSkip to conversation

blkdebug: Don't confuse image as backing file

PATCH Applied Fam Zheng 4 participants 4 messages Oct 16, 2015 Block layer

lore
Share & tools
lore

Fam Zheng

author
#0 lore raw

PATCH 1/1 blkdebug: Don't confuse image as backing file

The word "backing file" nowadays refers to the backing_hd in the external snapshot sense (i.e. bs->backing_hd), instead of the file sense (bs->file). Correct the comment to use the right term.

---
 block/blkdebug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
block/blkdebug.c +1 -1
index bc247f4..54650a7 100644
@@ -426,7 +426,7 @@ static int blkdebug_open(BlockDriverState *bs, QDict *options, int flags,
     /* Set initial state */
     s->state = 1;
 
-    /* Open the backing file */
+    /* Open the image file */
     assert(bs->file == NULL);
     ret = bdrv_open_image(&bs->file, qemu_opt_get(opts, "x-image"), options, "image",
                           bs, &child_file, false, &local_err);
Signature · 1 line
2.4.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Fam Zheng

The word "backing file" nowadays refers to the backing_hd in the external snapshot sense (i.e. bs->backing_hd), instead of the file sense (bs->file). Correct the comment to use the right term.

---
 block/blkdebug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 15 lines
block/blkdebug.c +1 -1
index bc247f4..54650a7 100644
@@ -426,7 +426,7 @@ static int blkdebug_open(BlockDriverState *bs, QDict *options, int flags,
     /* Set initial state */
     s->state = 1;
 
-    /* Open the backing file */
+    /* Open the image file */
     assert(bs->file == NULL);
     ret = bdrv_open_image(&bs->file, qemu_opt_get(opts, "x-image"), options, "image",
                           bs, &child_file, false, &local_err);
Signature · 2 lines
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org
Applied
#3 lore raw
In reply to Fam Zheng

Am 16.10.2015 um 12:46 hat Fam Zheng geschrieben:

Quoted 5 lines

The word "backing file" nowadays refers to the backing_hd in the external snapshot sense (i.e. bs->backing_hd), instead of the file sense (bs->file). Correct the comment to use the right term.

Thanks, applied to the block branch.

Kevin