]> git.proxmox.com Git - mirror_qemu.git/commit - block/blkdebug.c
blkdebug: Simplify and improve filename generation
authorMax Reitz <mreitz@redhat.com>
Tue, 11 Nov 2014 09:23:44 +0000 (10:23 +0100)
committerKevin Wolf <kwolf@redhat.com>
Wed, 10 Dec 2014 09:31:11 +0000 (10:31 +0100)
commit8779441b1b0e03bd3e5213dee447ab0c955e374b
tree1545219634a434b7168d05259cb0d5dac17fc36d
parent48fe86f6400574165979e0db6f5937ad487b6888
blkdebug: Simplify and improve filename generation

Instead of actually recreating the options from scratch, just reuse the
options given for creating the BDS, which are the configuration file
name and additional options. In case there are no additional options we
can thus create a plain filename.

This obviously results in a different output for qemu-iotest 099 which
exactly tests this filename generation. Fix it up as well.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-id: 1415697825-26678-2-git-send-email-mreitz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/blkdebug.c
tests/qemu-iotests/099.out