Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KOwAk-0006Xe-Hm for qemu-devel@nongnu.org; Fri, 01 Aug 2008 11:04:02 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KOwAk-0006XD-1l for qemu-devel@nongnu.org; Fri, 01 Aug 2008 11:04:02 -0400 Received: from [199.232.76.173] (port=59371 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KOwAj-0006X7-MP for qemu-devel@nongnu.org; Fri, 01 Aug 2008 11:04:01 -0400 Received: from savannah.gnu.org ([199.232.41.3]:35193 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KOwAj-0006Iv-9u for qemu-devel@nongnu.org; Fri, 01 Aug 2008 11:04:01 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KOwAi-0008V3-M6 for qemu-devel@nongnu.org; Fri, 01 Aug 2008 15:04:00 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KOwAi-0008Un-Ez for qemu-devel@nongnu.org; Fri, 01 Aug 2008 15:04:00 +0000 MIME-Version: 1.0 Errors-To: aliguori Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Anthony Liguori Message-Id: Date: Fri, 01 Aug 2008 15:04:00 +0000 Subject: [Qemu-devel] [4978] Revert 4977. 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 Revision: 4978 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4978 Author: aliguori Date: 2008-08-01 15:04:00 +0000 (Fri, 01 Aug 2008) Log Message: ----------- Revert 4977. Laurent asked for this not to be applied but I mistakenly applied it. Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/qemu-img.c Modified: trunk/qemu-img.c =================================================================== --- trunk/qemu-img.c 2008-08-01 15:00:04 UTC (rev 4977) +++ trunk/qemu-img.c 2008-08-01 15:04:00 UTC (rev 4978) @@ -208,7 +208,6 @@ uint64_t size; const char *p; BlockDriver *drv; - BlockDriverState *bs; flags = 0; for(;;) { @@ -238,6 +237,7 @@ filename = argv[optind++]; size = 0; if (base_filename) { + BlockDriverState *bs; bs = bdrv_new_open(base_filename, NULL); bdrv_get_geometry(bs, &size); size *= 512; @@ -279,9 +279,6 @@ error("Error while formatting"); } } - /* to set password */ - bs = bdrv_new_open(filename, NULL); - bdrv_delete(bs); return 0; }