From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LumpJ-0000c7-Bx for qemu-devel@nongnu.org; Fri, 17 Apr 2009 08:05:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LumpC-0000YJ-2I for qemu-devel@nongnu.org; Fri, 17 Apr 2009 08:05:46 -0400 Received: from [199.232.76.173] (port=42317 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LumpB-0000YG-Pp for qemu-devel@nongnu.org; Fri, 17 Apr 2009 08:05:41 -0400 Received: from mx2.redhat.com ([66.187.237.31]:55041) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LumpB-0005sp-5x for qemu-devel@nongnu.org; Fri, 17 Apr 2009 08:05:41 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n3HC5dMm011903 for ; Fri, 17 Apr 2009 08:05:39 -0400 From: Kevin Wolf Date: Fri, 17 Apr 2009 14:04:34 +0200 Message-Id: <1239969879-5611-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 0/5] Add qemu-img check subcommand Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf Current qcow2 code already includes some functions to do some consistency checks (e.g. compare refcounts to real usage). Allowing the user (or developer debugging qcow2 code) to check his images only involves actually building this code and exposing it to the user by qemu-img. This patch series implements a check subcommand for qemu-img. I think it will be useful especially in combination with qemu-io for test suites. Kevin Kevin Wolf (5): qcow2: Fix warnings in check_refcount() Introduce bdrv_check Introduce qemu-img check subcommand qcow2: Refcount checking code cleanup qcow2: Add plausibility check for L1/L2 entries block-qcow2.c | 239 +++++++++++++++++++++++++++++++++++++++++--------------- block.c | 14 ++++ block.h | 1 + block_int.h | 3 + qemu-img.c | 62 +++++++++++++++ 5 files changed, 255 insertions(+), 64 deletions(-)