From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LqXHZ-0003ZV-Ig for qemu-devel@nongnu.org; Sun, 05 Apr 2009 14:41:25 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LqXHY-0003YW-Jy for qemu-devel@nongnu.org; Sun, 05 Apr 2009 14:41:24 -0400 Received: from [199.232.76.173] (port=48129 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LqXHY-0003YF-FF for qemu-devel@nongnu.org; Sun, 05 Apr 2009 14:41:24 -0400 Received: from savannah.gnu.org ([199.232.41.3]:58202 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 1LqXHY-0002Rs-7F for qemu-devel@nongnu.org; Sun, 05 Apr 2009 14:41:24 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1LqXHX-0003bv-OK for qemu-devel@nongnu.org; Sun, 05 Apr 2009 18:41:23 +0000 Received: from aliguori by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1LqXHX-0003br-FX for qemu-devel@nongnu.org; Sun, 05 Apr 2009 18:41:23 +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: Sun, 05 Apr 2009 18:41:23 +0000 Subject: [Qemu-devel] [6990] qemu-io - an I/O path exerciser (Christoph Hellwig) 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: 6990 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6990 Author: aliguori Date: 2009-04-05 18:41:23 +0000 (Sun, 05 Apr 2009) Log Message: ----------- qemu-io - an I/O path exerciser (Christoph Hellwig) This patch adds a new qemu-io tool that links against the block layer and image formats and allow to exercise them without needing a guest image. It is inspired by the xfs_io tool which does the same for plain file I/O. In fact the libxcmd library which is the backend of xfs_io is reused by this tool in a limited fashing (cmd.[ch] files). This version tests out most of the plain block I/O commands with the most notable absent commands beeing snapshot handling and real aio. This tool is the basis of the I/O path test suite I'm working on right now. Signed-off-by: Christoph Hellwig Signed-off-by: Anthony Liguori Modified Paths: -------------- trunk/Makefile trunk/configure Modified: trunk/Makefile =================================================================== --- trunk/Makefile 2009-04-05 18:41:18 UTC (rev 6989) +++ trunk/Makefile 2009-04-05 18:41:23 UTC (rev 6990) @@ -206,8 +206,10 @@ qemu-nbd$(EXESUF): qemu-nbd.o qemu-tool.o osdep.o $(BLOCK_OBJS) -qemu-img$(EXESUF) qemu-nbd$(EXESUF): LIBS += -lz +qemu-io$(EXESUF): qemu-io.o qemu-tool.o osdep.o cmd.o $(BLOCK_OBJS) +qemu-img$(EXESUF) qemu-nbd$(EXESUF) qemu-io$(EXESUF): LIBS += -lz + clean: # avoid old build problems by removing potentially incorrect old files rm -f config.mak config.h op-i386.h opc-i386.h gen-op-i386.h op-arm.h opc-arm.h gen-op-arm.h Modified: trunk/configure =================================================================== --- trunk/configure 2009-04-05 18:41:18 UTC (rev 6989) +++ trunk/configure 2009-04-05 18:41:23 UTC (rev 6990) @@ -1551,7 +1551,7 @@ tools= if test `expr "$target_list" : ".*softmmu.*"` != 0 ; then - tools="qemu-img\$(EXESUF) $tools" + tools="qemu-img\$(EXESUF) qemu-io\$(EXESUF) $tools" if [ "$linux" = "yes" ] ; then tools="qemu-nbd\$(EXESUF) $tools" fi