From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34658) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHdn6-0000Hh-Ug for qemu-devel@nongnu.org; Mon, 18 Mar 2013 13:24:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UHdn5-0004Tf-Lu for qemu-devel@nongnu.org; Mon, 18 Mar 2013 13:24:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:18650) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UHdn5-0004TP-Cz for qemu-devel@nongnu.org; Mon, 18 Mar 2013 13:24:07 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r2IHO6KO012676 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 18 Mar 2013 13:24:06 -0400 From: Kevin Wolf Date: Mon, 18 Mar 2013 18:23:50 +0100 Message-Id: <1363627441-8297-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 00/11] block: Driver-specific options for protocols List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com, pbonzini@redhat.com With this series applied... * driver-specific command line options can be passed to protocols * the protocol driver can be explicitly specified instead of being parsed from the file name; the file name can be left out if the protocol doesn't need it * a new .bdrv_parse_filename callback parses filenames into option QDicts that are used for the real bdrv_open() * NBD makes use of all of these feature so that you can now specify: qemu-system-x86_64 -drive file.driver=nbd,file.host=localhost Kevin Wolf (11): block: Add options QDict to bdrv_file_open() prototypes block: Pass bdrv_file_open() options to block drivers qemu-socket: Make socket_optslist public nbd: Keep hostname and port separate nbd: Remove unused functions nbd: Accept -drive options for the network connection block: Introduce .bdrv_parse_filename callback block: Rename variable to avoid shadowing block: Make find_image_format safe with NULL filename block: Allow omitting the file name when using driver-specific options nbd: Use default port if only host is specified block.c | 139 ++++++++++++++++++++++++++++++++++++++++------ block/blkdebug.c | 5 +- block/blkverify.c | 5 +- block/cow.c | 2 +- block/curl.c | 3 +- block/dmg.c | 13 ++++- block/gluster.c | 2 +- block/iscsi.c | 5 +- block/nbd.c | 118 ++++++++++++++++++++++++++++----------- block/qcow.c | 2 +- block/qcow2.c | 2 +- block/qed.c | 2 +- block/raw-posix.c | 15 +++-- block/sheepdog.c | 7 ++- block/vmdk.c | 2 +- block/vvfat.c | 3 +- blockdev.c | 10 +++- include/block/block.h | 3 +- include/block/block_int.h | 7 ++- include/block/nbd.h | 4 +- include/qemu/sockets.h | 3 + nbd.c | 13 +---- qemu-io.c | 2 +- util/qemu-sockets.c | 28 +++++----- 24 files changed, 288 insertions(+), 107 deletions(-) -- 1.8.1.4