qemu-img: add support for --object command line arg
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 17 Feb 2016 10:10:17 +0000 (10:10 +0000)
committerKevin Wolf <kwolf@redhat.com>
Mon, 22 Feb 2016 08:50:04 +0000 (09:50 +0100)
commit3babeb153caab765e6a66ba1e0a12ff0c3b51a4e
treee3e5f916283a16713ff07a189e24a82709309f48
parent9ba371b6343c58805867a341dc5a1d258e2ab589
qemu-img: add support for --object command line arg

Allow creation of user creatable object types with qemu-img
via a new --object command line arg. This will be used to supply
passwords and/or encryption keys to the various block driver
backends via the recently added 'secret' object type.

 # printf letmein > mypasswd.txt
 # qemu-img info --object secret,id=sec0,file=mypasswd.txt \
      ...other info args...

Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-img-cmds.hx
qemu-img.c
qemu-img.texi