Re: [Qemu-devel] [PATCH v3 3/6] qemu-iotests: Add _supported_cache_modes

2013-11-21 Thread Stefan Hajnoczi
On Wed, Nov 20, 2013 at 03:44:14PM +0800, Fam Zheng wrote: > -_unsupported_qemu_io_options() > +_supported_cache_modes() > { > -for bad_opt > -do > -for opt in $QEMU_IO_OPTIONS > -do > -if [ "$bad_opt" = "$opt" ] > -then > -_notrun "n

Re: [Qemu-devel] [PATCH v3 3/6] qemu-iotests: Add _supported_cache_modes

2013-11-21 Thread Fam Zheng
On 2013年11月21日 20:39, Stefan Hajnoczi wrote: On Wed, Nov 20, 2013 at 03:44:14PM +0800, Fam Zheng wrote: -_unsupported_qemu_io_options() +_supported_cache_modes() { -for bad_opt -do -for opt in $QEMU_IO_OPTIONS -do -if [ "$bad_opt" = "$opt" ] -the

[Qemu-devel] [PATCH v3 3/6] qemu-iotests: Add _supported_cache_modes

2013-11-19 Thread Fam Zheng
This replaces _unsupported_qemu_io_options and check for support of current cache mode. If user dosen't give "-c " or "-nocache", the first supported cache mode is used in qemu-io. Signed-off-by: Fam Zheng --- tests/qemu-iotests/026 | 2 +- tests/qemu-iotests/039 | 2 +- tests/qem