qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] qemu-iotests: Honor ${CACHEMODE} in 091


From: Fam Zheng
Subject: Re: [Qemu-devel] [PATCH] qemu-iotests: Honor ${CACHEMODE} in 091
Date: Tue, 20 May 2014 09:03:11 +0800
User-agent: Mutt/1.5.23 (2014-03-12)

On Mon, 05/19 16:40, Kevin Wolf wrote:
> 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 <address@hidden>
> 
> Should we set _default_cache_mode=none then at least?

Yes we should set a default. We use _default_cache_mode=writethrough elsewhere,
why use none over writethrough here?

>                                                       We should probably
> also refuse to run with unsafe.

OK, I'll add _supported_cache_modes.

Fam

> >  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
> > 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]