]> git.proxmox.com Git - mirror_qemu.git/commit - qemu-nbd.texi
qemu-nbd: allow specifying image as a set of options args
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 17 Feb 2016 10:10:19 +0000 (10:10 +0000)
committerKevin Wolf <kwolf@redhat.com>
Mon, 22 Feb 2016 08:50:04 +0000 (09:50 +0100)
commit77c9aaefd7dca5de26476852055d4acc66985c90
tree8b3056f41383504e8240841ddb10fd8d4eea4406
parent499afa2512ec5bb0ecb6dbe3c8ea13a7217030ba
qemu-nbd: allow specifying image as a set of options args

Currently qemu-nbd allows an image filename to be passed on the
command line, but unless using the JSON format, it does not have
a way to set any options except the format eg

   qemu-nbd https://127.0.0.1/images/centos7.iso
   qemu-nbd /home/berrange/demo.qcow2

This adds a --image-opts arg that indicates that the positional
filename should be interpreted as a full option string, not
just a filename.

   qemu-nbd --image-opts driver=https,url=https://127.0.0.1/images,sslverify=off
   qemu-nbd --image-opts driver=file,filename=/home/berrange/demo.qcow2

This flag is mutually exclusive with the '-f' flag.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
qemu-nbd.c
qemu-nbd.texi