]> git.proxmox.com Git - mirror_qemu.git/commit - block/nfs.c
nfs: Remove processed options from QDict
authorKevin Wolf <kwolf@redhat.com>
Wed, 16 May 2018 16:08:16 +0000 (18:08 +0200)
committerJeff Cody <jcody@redhat.com>
Wed, 16 May 2018 17:37:47 +0000 (13:37 -0400)
commitc82be42cc803b36fd7aed5dceec68312c7056fd5
tree11c50b970d2f91c9d95e4e476d1f6f386abe4e1c
parent54b7af4369a37afbd82573d0dcfb27febdb6dd24
nfs: Remove processed options from QDict

Commit c22a03454 QAPIfied option parsing in the NFS block driver, but
forgot to remove all the options we processed. Therefore, we get an
error in bdrv_open_inherit(), which thinks the remaining options are
invalid. Trying to open an NFS image will result in an error like this:

    Block protocol 'nfs' doesn't support the option 'server.host'

Remove all options from the QDict to make the NFS driver work again.

Cc: qemu-stable@nongnu.org
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 20180516160816.26259-1-kwolf@redhat.com
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
Signed-off-by: Jeff Cody <jcody@redhat.com>
block/nfs.c