qemu-img: copy *key-secret opts when opening newly created files
commit29cf933635a50a4f1c51b022b323089997471e38
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 15 May 2017 16:47:12 +0000 (15 17:47 +0100)
committerMax Reitz <mreitz@redhat.com>
Mon, 29 May 2017 13:39:54 +0000 (29 15:39 +0200)
tree93bb3e13eef06ccd003ca0228e9061227c5e69ee
parent305b4c60f200ee8e6267ac75f3f5b5d09fda1079
qemu-img: copy *key-secret opts when opening newly created files

The qemu-img dd/convert commands will create an image file and
then try to open it. Historically it has been possible to open
new files without passing any options. With encrypted files
though, the *key-secret options are mandatory, so we need to
provide those options when opening the newly created file.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Message-id: 20170515164712.6643-5-berrange@redhat.com
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
qemu-img.c