From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33620) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmP06-0005iE-3g for qemu-devel@nongnu.org; Mon, 19 May 2014 10:57:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WmOzy-0008Fr-Ky for qemu-devel@nongnu.org; Mon, 19 May 2014 10:57:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:16060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WmOzy-0008FT-D9 for qemu-devel@nongnu.org; Mon, 19 May 2014 10:57:06 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4JEeZ0F005052 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 19 May 2014 10:40:36 -0400 Date: Mon, 19 May 2014 16:40:29 +0200 From: Kevin Wolf Message-ID: <20140519144029.GD4060@noname.redhat.com> References: <1400502255-9784-1-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1400502255-9784-1-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH] qemu-iotests: Honor ${CACHEMODE} in 091 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: qemu-devel@nongnu.org, Stefan Hajnoczi Am 19.05.2014 um 14:24 hat Fam Zheng geschrieben: > We should allow testing this on tmpfs. Any cache setting in iotests > should try to obey $CACHEMODE. > > Signed-off-by: Fam Zheng Should we set _default_cache_mode=none then at least? We should probably also refuse to run with unsafe. Kevin > tests/qemu-iotests/091 | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/tests/qemu-iotests/091 b/tests/qemu-iotests/091 > index 384b3ac..a7deea8 100755 > --- a/tests/qemu-iotests/091 > +++ b/tests/qemu-iotests/091 > @@ -59,13 +59,13 @@ echo === Starting QEMU VM1 === > echo > > qemu_comm_method="monitor" > -_launch_qemu -drive file="${TEST_IMG}",cache=none,id=disk > +_launch_qemu -drive file="${TEST_IMG}",cache=${CACHEMODE},id=disk > h1=$QEMU_HANDLE > > echo > echo === Starting QEMU VM2 === > echo > -_launch_qemu -drive file="${TEST_IMG}",cache=none,id=disk \ > +_launch_qemu -drive file="${TEST_IMG}",cache=${CACHEMODE},id=disk \ > -incoming "exec: cat '${MIG_FIFO}'" > h2=$QEMU_HANDLE > > -- > 1.9.2 >