From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjZZO-0004YC-S1 for qemu-devel@nongnu.org; Thu, 21 Nov 2013 14:05:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjZZI-0006s7-Ka for qemu-devel@nongnu.org; Thu, 21 Nov 2013 14:05:42 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41478) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjZZI-0006rv-2y for qemu-devel@nongnu.org; Thu, 21 Nov 2013 14:05:36 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id rALJ5XfL024488 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 21 Nov 2013 14:05:34 -0500 From: Max Reitz Date: Thu, 21 Nov 2013 20:05:48 +0100 Message-Id: <1385060754-18821-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH 0/6] blkdebug/blkverify: Allow command-line configuration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi , Max Reitz Currently, the configuration of blkdebug and blkverify is done through the "filename" alone. There is now way of manually choosing blkdebug or blkverify as a driver and using a normal image filename. In the case of blkdebug, the filename starts with the protocol prefix, follows up with the name of a configuration file and ends with the name of the image file. In the case of blkverify, the filename starts with the protocol prefix, follows up with the raw reference image filename and ends with the name of the image file. This patch allows the configuration of both drivers completely through command-line options. The driver has to be selected through the file.driver option (or similar), the image filename has to be given as the filename (obviously) and, depending on the driver, further options have to be given to control the behavior. In case of blkverify, the x-raw option specifies the name of the raw reference image file. In case of blkdebug, one may either set the config option to the filename of a configuration file, or the contents of the configuration file may be given directly on the command line (see description of patch 3 for an example). Max Reitz (6): blkdebug: Use errp for read_config() blkdebug: Don't require sophisticated filename qemu-option: Add qemu_config_parse_qdict() blkdebug: Always call read_config() blkdebug: Use command-line in read_config() blkverify: Don't require protocol filename block/blkdebug.c | 50 +++++++++++++------- block/blkverify.c | 4 +- include/qemu/config-file.h | 6 +++ util/qemu-config.c | 111 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 154 insertions(+), 17 deletions(-) -- 1.8.4.2