commit | 247147fbc107f818630c4044931de39b89c99342 | [log] [tgz] |
---|---|---|
author | Kevin Wolf <kwolf@redhat.com> | Wed Sep 24 16:37:14 2014 +0200 |
committer | Kevin Wolf <kwolf@redhat.com> | Thu Sep 25 15:24:14 2014 +0200 |
tree | 58b1b4170e54f094e1d746c946d42f0926d22441 | |
parent | d224469d87140f0ab9496f752f6042606b80718b [diff] |
block: Specify -drive legacy option aliases in array Instead of a series of qemu_opt_rename() calls, use an array that contains all of the renames and call qemu_opt_rename() in a loop. This will keep the code readable even when we add an error return to qemu_opt_rename(). Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: BenoƮt Canet <benoit.canet@nodalink.com> Reviewed-by: Markus Armbruster <armbru@redhat.com>