NBD patches for 3.1-rc2
Subsystems (2)
The following changes since commit e6ebbd46b6e539f3613136111977721d212c2812:
Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (2018-11-19 14:31:48 +0000)
are available in the Git repository at:
https://repo.or.cz/qemu/ericb.git tags/pull-nbd-2018-11-19
for you to fetch changes up to 8cedcffdc195bc39aeb1373826ba0a45629741e0:
iotests: Drop use of bash keyword 'function' (2018-11-19 11:16:46 -0600)
There are still a couple of things I'm working on that might still qualify for 3.1, but given the timing of -rc2, it's getting more likely that they will shift into 4.0 instead:
- handling of unaligned images (also broken in 3.0, so not necessarily a regression - but does fix assertion failures)
- qemu-nbd command line option to query server's exports and info (would be new feature, but would make it a lot easier to test if existing x-dirty-block feature is working)
Also, I did not spend enough time on this release reviewing Vladimir's additions for NBD reconnect, so that has now (sadly) slipped into 4.0.
The diffstat touches a large number of files, which is rather awkward for an -rc2 pull request - but those changes are mostly mechanical and mostly in the iotests subdirectory. The changes to the code base proper are quite small.
----------------------------------------------------------------
nbd patches for 2018-11-19
Add iotest coverage for NBD connections using TLS, including a couple of code fixes that it pointed out
- Mao Zhongyi: 0/3 Do some cleaning work in qemu-iotests
- Daniel P. Berrangé: io: return 0 for EOF in TLS session read after shutdown
- Daniel P. Berrangé: 0/6 Misc fixes to NBD
- Eric Blake: iotests: Drop use of bash keyword 'function'
----------------------------------------------------------------
Daniel P. Berrangé (6):
nbd: fix whitespace in server error message
io: return 0 for EOF in TLS session read after shutdown
tests: pull qemu-nbd iotest helpers into common.nbd file
tests: check if qemu-nbd is still alive before waiting
tests: add iotests helpers for dealing with TLS certificates
tests: exercise NBD server in TLS mode
Eric Blake (3):
nbd/server: Ignore write errors when replying to NBD_OPT_ABORT
iotests: Also test I/O over NBD TLS
iotests: Drop use of bash keyword 'function'
Mao Zhongyi (3):
qemu-iotests: remove unused variable 'here'
qemu-iotests: convert `pwd` and $(pwd) to $PWD
qemu-iotests: Modern shell scripting (use $() instead of ``)configure | 2 +- include/io/channel-tls.h | 1 + include/io/channel.h | 6 +- crypto/tlssession.c | 3 + io/channel-tls.c | 5 ++ nbd/server.c | 14 ++-- tests/qemu-iotests/common.config | 6 +- tests/qemu-iotests/common.nbd | 109 ++++++++++++++++++++++++ tests/qemu-iotests/common.pattern | 16 ++-- tests/qemu-iotests/common.qemu | 8 +- tests/qemu-iotests/common.rc | 2 +- tests/qemu-iotests/common.tls | 137 +++++++++++++++++++++++++++++++ scripts/coccinelle/tcg_gen_extract.cocci | 2 +- tests/check-block.sh | 6 +- tests/qemu-iotests/001 | 1 - tests/qemu-iotests/002 | 1 - tests/qemu-iotests/003 | 1 - tests/qemu-iotests/004 | 1 - tests/qemu-iotests/005 | 1 - tests/qemu-iotests/007 | 1 - tests/qemu-iotests/008 | 1 - tests/qemu-iotests/009 | 1 - tests/qemu-iotests/010 | 1 - tests/qemu-iotests/011 | 1 - tests/qemu-iotests/012 | 1 - tests/qemu-iotests/013 | 1 - tests/qemu-iotests/014 | 1 - tests/qemu-iotests/015 | 1 - tests/qemu-iotests/017 | 1 - tests/qemu-iotests/018 | 1 - tests/qemu-iotests/019 | 1 - tests/qemu-iotests/020 | 1 - tests/qemu-iotests/021 | 1 - tests/qemu-iotests/022 | 1 - tests/qemu-iotests/023 | 1 - tests/qemu-iotests/024 | 1 - tests/qemu-iotests/025 | 1 - tests/qemu-iotests/026 | 1 - tests/qemu-iotests/027 | 1 - tests/qemu-iotests/028 | 1 - tests/qemu-iotests/029 | 1 - tests/qemu-iotests/031 | 1 - tests/qemu-iotests/032 | 1 - tests/qemu-iotests/033 | 1 - tests/qemu-iotests/034 | 1 - tests/qemu-iotests/035 | 3 +- tests/qemu-iotests/036 | 1 - tests/qemu-iotests/037 | 3 +- tests/qemu-iotests/038 | 7 +- tests/qemu-iotests/039 | 1 - tests/qemu-iotests/042 | 1 - tests/qemu-iotests/043 | 1 - tests/qemu-iotests/046 | 7 +- tests/qemu-iotests/047 | 3 +- tests/qemu-iotests/049 | 5 +- tests/qemu-iotests/050 | 1 - tests/qemu-iotests/051 | 5 +- tests/qemu-iotests/052 | 1 - tests/qemu-iotests/053 | 1 - tests/qemu-iotests/054 | 1 - tests/qemu-iotests/058 | 48 ++--------- tests/qemu-iotests/059 | 1 - tests/qemu-iotests/060 | 1 - tests/qemu-iotests/061 | 1 - tests/qemu-iotests/062 | 1 - tests/qemu-iotests/063 | 1 - tests/qemu-iotests/064 | 1 - tests/qemu-iotests/066 | 1 - tests/qemu-iotests/067 | 5 +- tests/qemu-iotests/068 | 1 - tests/qemu-iotests/069 | 1 - tests/qemu-iotests/070 | 1 - tests/qemu-iotests/071 | 5 +- tests/qemu-iotests/072 | 1 - tests/qemu-iotests/073 | 1 - tests/qemu-iotests/075 | 1 - tests/qemu-iotests/076 | 1 - tests/qemu-iotests/077 | 5 +- tests/qemu-iotests/078 | 1 - tests/qemu-iotests/079 | 1 - tests/qemu-iotests/080 | 1 - tests/qemu-iotests/081 | 5 +- tests/qemu-iotests/082 | 3 +- tests/qemu-iotests/083 | 1 - tests/qemu-iotests/084 | 1 - tests/qemu-iotests/085 | 11 ++- tests/qemu-iotests/086 | 3 +- tests/qemu-iotests/087 | 7 +- tests/qemu-iotests/088 | 1 - tests/qemu-iotests/089 | 1 - tests/qemu-iotests/090 | 1 - tests/qemu-iotests/091 | 1 - tests/qemu-iotests/092 | 1 - tests/qemu-iotests/094 | 1 - tests/qemu-iotests/095 | 1 - tests/qemu-iotests/097 | 1 - tests/qemu-iotests/098 | 1 - tests/qemu-iotests/099 | 7 +- tests/qemu-iotests/101 | 1 - tests/qemu-iotests/102 | 1 - tests/qemu-iotests/103 | 1 - tests/qemu-iotests/104 | 1 - tests/qemu-iotests/105 | 1 - tests/qemu-iotests/106 | 1 - tests/qemu-iotests/107 | 1 - tests/qemu-iotests/108 | 1 - tests/qemu-iotests/109 | 3 +- tests/qemu-iotests/110 | 1 - tests/qemu-iotests/111 | 1 - tests/qemu-iotests/112 | 3 +- tests/qemu-iotests/113 | 1 - tests/qemu-iotests/114 | 1 - tests/qemu-iotests/115 | 1 - tests/qemu-iotests/116 | 1 - tests/qemu-iotests/117 | 1 - tests/qemu-iotests/119 | 1 - tests/qemu-iotests/120 | 1 - tests/qemu-iotests/121 | 1 - tests/qemu-iotests/122 | 1 - tests/qemu-iotests/123 | 1 - tests/qemu-iotests/125 | 1 - tests/qemu-iotests/126 | 1 - tests/qemu-iotests/127 | 1 - tests/qemu-iotests/128 | 1 - tests/qemu-iotests/130 | 1 - tests/qemu-iotests/131 | 1 - tests/qemu-iotests/133 | 1 - tests/qemu-iotests/134 | 1 - tests/qemu-iotests/135 | 1 - tests/qemu-iotests/137 | 1 - tests/qemu-iotests/138 | 1 - tests/qemu-iotests/140 | 1 - tests/qemu-iotests/141 | 1 - tests/qemu-iotests/142 | 9 +- tests/qemu-iotests/143 | 1 - tests/qemu-iotests/144 | 1 - tests/qemu-iotests/145 | 1 - tests/qemu-iotests/146 | 1 - tests/qemu-iotests/150 | 1 - tests/qemu-iotests/153 | 5 +- tests/qemu-iotests/154 | 1 - tests/qemu-iotests/156 | 1 - tests/qemu-iotests/157 | 5 +- tests/qemu-iotests/158 | 1 - tests/qemu-iotests/159 | 1 - tests/qemu-iotests/160 | 1 - tests/qemu-iotests/162 | 1 - tests/qemu-iotests/170 | 1 - tests/qemu-iotests/171 | 1 - tests/qemu-iotests/172 | 7 +- tests/qemu-iotests/173 | 1 - tests/qemu-iotests/174 | 1 - tests/qemu-iotests/175 | 1 - tests/qemu-iotests/176 | 3 +- tests/qemu-iotests/177 | 3 +- tests/qemu-iotests/178 | 1 - tests/qemu-iotests/179 | 1 - tests/qemu-iotests/181 | 1 - tests/qemu-iotests/182 | 1 - tests/qemu-iotests/183 | 1 - tests/qemu-iotests/184 | 5 +- tests/qemu-iotests/185 | 1 - tests/qemu-iotests/186 | 5 +- tests/qemu-iotests/187 | 1 - tests/qemu-iotests/188 | 1 - tests/qemu-iotests/189 | 1 - tests/qemu-iotests/190 | 1 - tests/qemu-iotests/191 | 1 - tests/qemu-iotests/192 | 1 - tests/qemu-iotests/195 | 5 +- tests/qemu-iotests/197 | 1 - tests/qemu-iotests/198 | 1 - tests/qemu-iotests/200 | 1 - tests/qemu-iotests/204 | 3 +- tests/qemu-iotests/214 | 1 - tests/qemu-iotests/215 | 1 - tests/qemu-iotests/221 | 1 - tests/qemu-iotests/223 | 5 +- tests/qemu-iotests/225 | 1 - tests/qemu-iotests/226 | 1 - tests/qemu-iotests/227 | 5 +- tests/qemu-iotests/229 | 1 - tests/qemu-iotests/231 | 1 - tests/qemu-iotests/232 | 7 +- tests/qemu-iotests/233 | 112 +++++++++++++++++++++++++ tests/qemu-iotests/233.out | 40 +++++++++ tests/qemu-iotests/check | 62 +++++++------- tests/qemu-iotests/group | 1 + 188 files changed, 542 insertions(+), 333 deletions(-) create mode 100644 tests/qemu-iotests/common.nbd create mode 100644 tests/qemu-iotests/common.tls create mode 100755 tests/qemu-iotests/233 create mode 100644 tests/qemu-iotests/233.out
Signature · 1 line
2.17.2
[Qemu-devel] [PULL 02/12] qemu-iotests: convert `pwd` and $(pwd) to $PWD
From: Mao Zhongyi <[email protected]>
POSIX requires $PWD to be reliable, and we expect all shells used by qemu scripts to be relatively close to POSIX. Thus, it is smarter to avoid forking the pwd executable for something that is already available in the environment.
So replace it with the following:
sed -i 's/\(pwd\|\$(pwd)\)/$PWD/g' $(git grep -l pwd)
Then delete a pointless line assigning PWD to itself.
Message-Id: <[email protected]>
--- configure | 2 +- tests/qemu-iotests/common.config | 2 -- tests/qemu-iotests/common.rc | 2 +- scripts/coccinelle/tcg_gen_extract.cocci | 2 +- tests/check-block.sh | 6 +++--- tests/qemu-iotests/check | 2 +- 6 files changed, 7 insertions(+), 9 deletions(-)
configure +1 -1
@@ -878,7 +878,7 @@ Linux) vhost_crypto="yes" vhost_scsi="yes" vhost_vsock="yes" - QEMU_INCLUDES="-I\$(SRC_PATH)/linux-headers -I$(pwd)/linux-headers $QEMU_INCLUDES" + QEMU_INCLUDES="-I\$(SRC_PATH)/linux-headers -I$PWD/linux-headers $QEMU_INCLUDES" supported_os="yes" libudev="yes" ;;
tests/qemu-iotests/common.config +0 -2
@@ -25,8 +25,6 @@ HOSTOS=`uname -s` arch=`uname -m` [[ "$arch" =~ "ppc64" ]] && qemu_arch=ppc64 || qemu_arch="$arch" -export PWD=`pwd` - # make sure we have a standard umask umask 022
tests/qemu-iotests/common.rc +1 -1
@@ -160,7 +160,7 @@ fi ORIG_TEST_IMG="$TEST_IMG" if [ -z "$TEST_DIR" ]; then - TEST_DIR=`pwd`/scratch + TEST_DIR=$PWD/scratch fi QEMU_TEST_DIR="${TEST_DIR}"
scripts/coccinelle/tcg_gen_extract.cocci +1 -1
@@ -17,7 +17,7 @@ // --keep-comments --in-place \ // --use-gitgrep --dir target // -// $ docker run --rm -v `pwd`:`pwd` -w `pwd` philmd/coccinelle \ +// $ docker run --rm -v $PWD:$PWD -w $PWD philmd/coccinelle \ // --macro-file scripts/cocci-macro-file.h \ // --sp-file scripts/coccinelle/tcg_gen_extract.cocci \ // --keep-comments --in-place \
tests/check-block.sh +3 -3
@@ -5,9 +5,9 @@ if [ "$#" -ne 0 ]; then FORMAT_LIST="$@" fi -export QEMU_PROG="$(pwd)/x86_64-softmmu/qemu-system-x86_64" -export QEMU_IMG_PROG="$(pwd)/qemu-img" -export QEMU_IO_PROG="$(pwd)/qemu-io" +export QEMU_PROG="$PWD/x86_64-softmmu/qemu-system-x86_64" +export QEMU_IMG_PROG="$PWD/qemu-img" +export QEMU_IO_PROG="$PWD/qemu-io" if [ ! -x $QEMU_PROG ]; then echo "'make check-block' requires qemu-system-x86_64"
tests/qemu-iotests/check +1 -1
@@ -99,7 +99,7 @@ set_prog_path() } if [ -z "$TEST_DIR" ]; then - TEST_DIR=`pwd`/scratch + TEST_DIR=$PWD/scratch fi if [ ! -e "$TEST_DIR" ]; then
Signature · 1 line
2.17.2
[Qemu-devel] [PULL 04/12] nbd: fix whitespace in server error message
In reply to Eric BlakeFrom: Daniel P. Berrangé <[email protected]>
A space was missing after the option number was printed:
Option 0x8not permitted before TLS
becomes
Option 0x8 not permitted before TLS
This fixes
commit 3668328303429f3bc93ab3365c66331600b06a2d
Author: Eric Blake <[email protected]>
Date: Fri Oct 14 13:33:09 2016 -0500
nbd: Send message along with server NBD_REP_ERR errors
Message-Id: <[email protected]>
--- nbd/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
nbd/server.c +1 -1
@@ -1136,7 +1136,7 @@ static int nbd_negotiate_options(NBDClient *client, uint16_t myflags,default : ret =nbd_opt_drop (client,NBD_REP_ERR_TLS_REQD , errp,"Option 0x%" PRIx32 -"not permitted before TLS" , option); +" not permitted before TLS" , option);/* Let the client keep trying, unless they asked to * quit. In this mode, we've already sent an error, so * we can't ack the abort. */
Signature · 1 line
2.17.2
[Qemu-devel] [PULL 05/12] nbd/server: Ignore write errors when replying to NBD_OPT_ABORT
In reply to Eric BlakeCommit 37ec36f6 intentionally ignores errors when trying to reply to an NBD_OPT_ABORT request for plaintext clients, but did not make the same change for a TLS server. Since NBD_OPT_ABORT is documented as being a potential for an EPIPE when the client hangs up without waiting for our reply, we don't need to pollute the server's output with that failure.
Message-Id: <[email protected]>
--- nbd/server.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
nbd/server.c +8 -4
@@ -1134,12 +1134,16 @@ static int nbd_negotiate_options(NBDClient *client, uint16_t myflags,return -EINVAL ;default : - ret =nbd_opt_drop (client,NBD_REP_ERR_TLS_REQD , errp, +/* Let the client keep trying, unless they asked to +* quit. Always try to give an error back to the +* client; but when replying to OPT_ABORT, be aware +* that the client may hang up before receiving the +* error, in which case we are fine ignoring the +* resulting EPIPE. */ + ret =nbd_opt_drop (client,NBD_REP_ERR_TLS_REQD , + option ==NBD_OPT_ABORT ?NULL : errp,"Option 0x%" PRIx32" not permitted before TLS" , option); -/* Let the client keep trying, unless they asked to -* quit. In this mode, we've already sent an error, so -* we can't ack the abort. */ if (option ==NBD_OPT_ABORT ) {return 1 ; }
Signature · 1 line
2.17.2
[Qemu-devel] [PULL 06/12] io: return 0 for EOF in TLS session read after shutdown
In reply to Eric BlakeFrom: Daniel P. Berrangé <[email protected]>
GNUTLS takes a paranoid approach when seeing 0 bytes returned by the underlying OS read() function. It will consider this an error and return GNUTLS_E_PREMATURE_TERMINATION instead of propagating the 0 return value. It expects apps to arrange for clean termination at the protocol level and not rely on seeing EOF from a read call to detect shutdown. This is to harden apps against a malicious 3rd party causing termination of the sockets layer.
This is unhelpful for the QEMU NBD code which does have a clean protocol level shutdown, but still relies on seeing 0 from the I/O channel read in the coroutine handling incoming replies.
The upshot is that when using a plain NBD connection shutdown is silent, but when using TLS, the client spams the console with
Cannot read from TLS channel: Broken pipe
The NBD connection has, however, called qio_channel_shutdown() at this point to indicate that it is done with I/O. This gives the opportunity to optimize the code such that when the channel has been shutdown in the read direction, the error code GNUTLS_E_PREMATURE_TERMINATION gets turned into a '0' return instead of an error.
Message-Id: <[email protected]>
--- include/io/channel-tls.h | 1 + include/io/channel.h | 6 +++--- crypto/tlssession.c | 3 +++ io/channel-tls.c | 5 +++++ 4 files changed, 12 insertions(+), 3 deletions(-)
include/io/channel-tls.h +1 -0
@@ -48,6 +48,7 @@ struct QIOChannelTLS {QIOChannel parent;QIOChannel *master;QCryptoTLSSession *session; +QIOChannelShutdown shutdown; };/**
include/io/channel.h +3 -3
@@ -51,9 +51,9 @@ enum QIOChannelFeature {typedef enum QIOChannelShutdown QIOChannelShutdown ;enum QIOChannelShutdown { -QIO_CHANNEL_SHUTDOWN_BOTH , -QIO_CHANNEL_SHUTDOWN_READ , -QIO_CHANNEL_SHUTDOWN_WRITE , +QIO_CHANNEL_SHUTDOWN_READ =1 , +QIO_CHANNEL_SHUTDOWN_WRITE =2 , +QIO_CHANNEL_SHUTDOWN_BOTH =3 , }; typedef gboolean (*QIOChannelFunc)(QIOChannel *ioc,
crypto/tlssession.c +3 -0
@@ -473,6 +473,9 @@ qcrypto_tls_session_read(QCryptoTLSSession *session,case GNUTLS_E_INTERRUPTED : errno =EINTR ;break ; +case GNUTLS_E_PREMATURE_TERMINATION : + errno =ECONNABORTED ; +break ;default : errno =EIO ;break ;
io/channel-tls.c +5 -0
@@ -275,6 +275,9 @@ static ssize_t qio_channel_tls_readv(QIOChannel *ioc, }else {return QIO_CHANNEL_ERR_BLOCK ; } + }else if (errno ==ECONNABORTED && + (tioc->shutdown &QIO_CHANNEL_SHUTDOWN_READ )) { +return 0 ; } error_setg_errno(errp, errno,
@@ -357,6 +360,8 @@ static int qio_channel_tls_shutdown(QIOChannel *ioc, {QIOChannelTLS *tioc =QIO_CHANNEL_TLS (ioc); + tioc->shutdown |= how; +return qio_channel_shutdown (tioc->master, how, errp); }
Signature · 1 line
2.17.2
[Qemu-devel] [PULL 03/12] qemu-iotests: Modern shell scripting (use $() instead of ``)
In reply to Eric BlakeFrom: Mao Zhongyi <[email protected]>
Various shell files contain a mix between obsolete `` and modern $(); It would be nice to convert to using $() everywhere. For now, just do the qemu-iotests directory.
Message-Id: <[email protected]>
--- tests/qemu-iotests/common.config | 4 +-- tests/qemu-iotests/check | 60 ++++++++++++++++---------------- 2 files changed, 32 insertions(+), 32 deletions(-)
tests/qemu-iotests/common.config +2 -2
@@ -21,8 +21,8 @@ export LANG=C PATH=".:$PATH" -HOSTOS=`uname -s` -arch=`uname -m` +HOSTOS=$(uname -s) +arch=$(uname -m) [[ "$arch" =~ "ppc64" ]] && qemu_arch=ppc64 || qemu_arch="$arch" # make sure we have a standard umask
tests/qemu-iotests/check +30 -30
172 lines not on this page · raw message
Signature · 1 line
2.17.2
[Qemu-devel] [PULL 08/12] tests: check if qemu-nbd is still alive before waiting
In reply to Eric BlakeFrom: Daniel P. Berrangé <[email protected]>
If the qemu-nbd UNIX socket has not shown up, the tests will sleep a bit and then check again repeatedly for up to 30 seconds. This is pointless if the qemu-nbd process has quit due to an error, so check whether the pid is still alive before waiting and retrying.
Message-Id: <[email protected]>
--- tests/qemu-iotests/common.nbd | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
tests/qemu-iotests/common.nbd +9 -1
@@ -37,11 +37,19 @@ function nbd_server_stop() function nbd_server_wait_for_unix_socket() { + pid=$1 + for ((i = 0; i < 300; i++)) do if [ -r "$nbd_unix_socket" ]; then return fi + kill -s 0 $pid 2>/dev/null + if test $? != 0 + then + echo "qemu-nbd unexpectedly quit" + exit 1 + fi sleep 0.1 done echo "Failed in check of unix socket created by qemu-nbd"
@@ -52,5 +60,5 @@ function nbd_server_start_unix_socket() { nbd_server_stop $QEMU_NBD -v -t -k "$nbd_unix_socket" "$@" & - nbd_server_wait_for_unix_socket + nbd_server_wait_for_unix_socket $! }
Signature · 1 line
2.17.2
[Qemu-devel] [PULL 07/12] tests: pull qemu-nbd iotest helpers into common.nbd file
In reply to Eric BlakeFrom: Daniel P. Berrangé <[email protected]>
The helpers for starting/stopping qemu-nbd in 058 will be useful in other test cases, so move them into a common.nbd file.
Message-Id: <[email protected]>
--- tests/qemu-iotests/common.nbd | 56 +++++++++++++++++++++++++++++++++++ tests/qemu-iotests/058 | 47 +++++------------------------ 2 files changed, 64 insertions(+), 39 deletions(-) create mode 100644 tests/qemu-iotests/common.nbd
tests/qemu-iotests/common.nbd new file +56 -0
@@ -0,0 +1,56 @@ +#!/bin/bash +# -*- shell-script-mode -*- +# +# Helpers for NBD server related config +# +# Copyright (C) 2018 Red Hat, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + +nbd_unix_socket="${TEST_DIR}/qemu-nbd.sock" +nbd_pid_file="${TEST_DIR}/qemu-nbd.pid" + +function nbd_server_stop() +{ + local NBD_PID + if [ -f "$nbd_pid_file" ]; then + read NBD_PID < "$nbd_pid_file" + rm -f "$nbd_pid_file" + if [ -n "$NBD_PID" ]; then + kill "$NBD_PID" + fi + fi + rm -f "$nbd_unix_socket" +} + +function nbd_server_wait_for_unix_socket() +{ + for ((i = 0; i < 300; i++)) + do + if [ -r "$nbd_unix_socket" ]; then + return + fi + sleep 0.1 + done + echo "Failed in check of unix socket created by qemu-nbd" + exit 1 +} + +function nbd_server_start_unix_socket() +{ + nbd_server_stop + $QEMU_NBD -v -t -k "$nbd_unix_socket" "$@" & + nbd_server_wait_for_unix_socket +}
tests/qemu-iotests/058 +8 -39
75 lines not on this page · raw message
Signature · 1 line
2.17.2
[Qemu-devel] [PULL 09/12] tests: add iotests helpers for dealing with TLS certificates
In reply to Eric BlakeFrom: Daniel P. Berrangé <[email protected]>
Add helpers to common.tls for creating TLS certificates for a CA, server and client.
Message-Id: <[email protected]>
--- tests/qemu-iotests/common.tls | 137 ++++++++++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 tests/qemu-iotests/common.tls
tests/qemu-iotests/common.tls new file +137 -0
@@ -0,0 +1,137 @@ +#!/bin/bash +# +# Helpers for TLS related config +# +# Copyright (C) 2018 Red Hat, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# + +tls_dir="${TEST_DIR}/tls" + +function tls_x509_cleanup() +{ + rm -f "${tls_dir}"/*.pem + rm -f "${tls_dir}"/*/*.pem + rmdir "${tls_dir}"/* + rmdir "${tls_dir}" +} + + +function tls_x509_init() +{ + mkdir -p "${tls_dir}" + + # use a fixed key so we don't waste system entropy on + # each test run + cat > "${tls_dir}/key.pem" <<EOF +-----BEGIN PRIVATE KEY----- +MIICdQIBADANBgkqhkiG9w0BAQEFAASCAl8wggJbAgEAAoGBALVcr +BL40Tm6yq88FBhJNw1aaoCjmtg0l4dWQZ/e9Fimx4ARxFpT+ji4FE +Cgl9s/SGqC+1nvlkm9ViSo0j7MKDbnDB+VRHDvMAzQhA2X7e8M0n9 +rPolUY2lIVC83q0BBaOBkCj2RSmT2xTEbbC2xLukSrg2WP/ihVOxc +kXRuyFtzAgMBAAECgYB7slBexDwXrtItAMIH6m/U+LUpNe0Xx48OL +IOn4a4whNgO/o84uIwygUK27ZGFZT0kAGAk8CdF9hA6ArcbQ62s1H +myxrUbF9/mrLsQw1NEqpuUk9Ay2Tx5U/wPx35S3W/X2AvR/ZpTnCn +2q/7ym9fyiSoj86drD7BTvmKXlOnOwQJBAPOFMp4mMa9NGpGuEssO +m3Uwbp6lhcP0cA9MK+iOmeANpoKWfBdk5O34VbmeXnGYWEkrnX+9J +bM4wVhnnBWtgBMCQQC+qAEmvwcfhauERKYznMVUVksyeuhxhCe7EK +mPh+U2+g0WwdKvGDgO0PPt1gq0ILEjspMDeMHVdTwkaVBo/uMhAkA +Z5SsZyCP2aTOPFDypXRdI4eqRcjaEPOUBq27r3uYb/jeboVb2weLa +L1MmVuHiIHoa5clswPdWVI2y0em2IGoDAkBPSp/v9VKJEZabk9Frd +a+7u4fanrM9QrEjY3KhduslSilXZZSxrWjjAJPyPiqFb3M8XXA26W +nz1KYGnqYKhLcBAkB7dt57n9xfrhDpuyVEv+Uv1D3VVAhZlsaZ5Pp +dcrhrkJn2sa/+O8OKvdrPSeeu/N5WwYhJf61+CPoenMp7IFci +-----END PRIVATE KEY----- +EOF +} + + +function tls_x509_create_root_ca() +{ + name=${1:-ca-cert} + + cat > "${tls_dir}/ca.info" <<EOF +cn = Cthulhu Dark Lord Enterprises $name +ca +cert_signing_key +EOF + + certtool --generate-self-signed \ + --load-privkey "${tls_dir}/key.pem" \ + --template "${tls_dir}/ca.info" \ + --outfile "${tls_dir}/$name-cert.pem" 2>&1 | head -1 + + rm -f "${tls_dir}/ca.info" +} + + +function tls_x509_create_server() +{ + caname=$1 + name=$2 + + mkdir -p "${tls_dir}/$name" + cat > "${tls_dir}/cert.info" <<EOF +organization = Cthulhu Dark Lord Enterprises $name +cn = localhost +dns_name = localhost +dns_name = localhost.localdomain +ip_address = 127.0.0.1 +ip_address = ::1 +tls_www_server +encryption_key +signing_key +EOF + + certtool --generate-certificate \ + --load-ca-privkey "${tls_dir}/key.pem" \ + --load-ca-certificate "${tls_dir}/$caname-cert.pem" \ + --load-privkey "${tls_dir}/key.pem" \ + --template "${tls_dir}/cert.info" \ + --outfile "${tls_dir}/$name/server-cert.pem" 2>&1 | head -1 + ln -s "${tls_dir}/$caname-cert.pem" "${tls_dir}/$name/ca-cert.pem" + ln -s "${tls_dir}/key.pem" "${tls_dir}/$name/server-key.pem" + + rm -f "${tls_dir}/cert.info" +} + + +function tls_x509_create_client() +{ + caname=$1 + name=$2 + + mkdir -p "${tls_dir}/$name" + cat > "${tls_dir}/cert.info" <<EOF +country = South Pacific +locality = R'lyeh +organization = Cthulhu Dark Lord Enterprises $name +cn = localhost +tls_www_client +encryption_key +signing_key +EOF + + certtool --generate-certificate \ + --load-ca-privkey "${tls_dir}/key.pem" \ + --load-ca-certificate "${tls_dir}/$caname-cert.pem" \ + --load-privkey "${tls_dir}/key.pem" \ + --template "${tls_dir}/cert.info" \ + --outfile "${tls_dir}/$name/client-cert.pem" 2>&1 | head -1 + ln -s "${tls_dir}/$caname-cert.pem" "${tls_dir}/$name/ca-cert.pem" + ln -s "${tls_dir}/key.pem" "${tls_dir}/$name/client-key.pem" + + rm -f "${tls_dir}/cert.info" +}
Signature · 1 line
2.17.2
[Qemu-devel] [PULL 11/12] iotests: Also test I/O over NBD TLS
In reply to Eric BlakeEnhance test 233 to also perform I/O beyond the initial handshake.
Message-Id: <[email protected]>
--- tests/qemu-iotests/233 | 12 +++++++++++- tests/qemu-iotests/233.out | 10 ++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-)
tests/qemu-iotests/233 +11 -1
@@ -62,7 +62,7 @@ tls_x509_create_client "ca2" "client2" echo echo "== preparing image ==" _make_test_img 64M - +$QEMU_IO -c 'w -P 0x11 1m 1m' "$TEST_IMG" | _filter_qemu_io echo echo "== check TLS client to plain server fails =="
@@ -96,6 +96,16 @@ $QEMU_IMG info --image-opts \ driver=nbd,host=$nbd_tcp_addr,port=$nbd_tcp_port,tls-creds=tls0 \ 2>&1 | sed "s/$nbd_tcp_port/PORT/g" +echo +echo "== perform I/O over TLS ==" +QEMU_IO_OPTIONS=$QEMU_IO_OPTIONS_NO_FMT +$QEMU_IO -c 'r -P 0x11 1m 1m' -c 'w -P 0x22 1m 1m' --image-opts \ + --object tls-creds-x509,dir=${tls_dir}/client1,endpoint=client,id=tls0 \ + driver=nbd,host=$nbd_tcp_addr,port=$nbd_tcp_port,tls-creds=tls0 \ + 2>&1 | _filter_qemu_io + +$QEMU_IO -f qcow2 -r -U -c 'r -P 0x22 1m 1m' "$TEST_IMG" | _filter_qemu_io + # success, all done echo "*** done" rm -f $seq.full
tests/qemu-iotests/233.out +10 -0
@@ -9,6 +9,8 @@ Generating a signed certificate... == preparing image == Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 +wrote 1048576/1048576 bytes at offset 1048576 +1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) == check TLS client to plain server fails == qemu-img: Could not open 'driver=nbd,host=127.0.0.1,port=PORT,tls-creds=tls0': Denied by server for option 5 (starttls)
@@ -27,4 +29,12 @@ disk size: unavailable == check TLS with different CA fails == option negotiation failed: Verify failed: No certificate was found. qemu-img: Could not open 'driver=nbd,host=127.0.0.1,port=PORT,tls-creds=tls0': The certificate hasn't got a known issuer + +== perform I/O over TLS == +read 1048576/1048576 bytes at offset 1048576 +1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +wrote 1048576/1048576 bytes at offset 1048576 +1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +read 1048576/1048576 bytes at offset 1048576 +1 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) *** done
Signature · 1 line
2.17.2
[Qemu-devel] [PULL 10/12] tests: exercise NBD server in TLS mode
In reply to Eric BlakeFrom: Daniel P. Berrangé <[email protected]>
Add tests that validate it is possible to connect to an NBD server running TLS mode. Also test mis-matched TLS vs non-TLS connections correctly fail.
Message-Id: <[email protected]>
[eblake: rebase to iotests shell cleanups, use ss instead of socat for port probing, sanitize port number in expected output]
--- tests/qemu-iotests/common.nbd | 45 +++++++++++++++ tests/qemu-iotests/233 | 102 ++++++++++++++++++++++++++++++++++ tests/qemu-iotests/233.out | 30 ++++++++++ tests/qemu-iotests/group | 1 + 4 files changed, 178 insertions(+) create mode 100755 tests/qemu-iotests/233 create mode 100644 tests/qemu-iotests/233.out
tests/qemu-iotests/common.nbd +45 -0
@@ -20,6 +20,7 @@ # nbd_unix_socket="${TEST_DIR}/qemu-nbd.sock" +nbd_tcp_addr="127.0.0.1" nbd_pid_file="${TEST_DIR}/qemu-nbd.pid" function nbd_server_stop()
@@ -62,3 +63,47 @@ function nbd_server_start_unix_socket() $QEMU_NBD -v -t -k "$nbd_unix_socket" "$@" & nbd_server_wait_for_unix_socket $! } + +function nbd_server_set_tcp_port() +{ + (ss --help) >/dev/null 2>&1 || _notrun "ss utility not found, skipping test" + + for ((port = 10809; port <= 10909; port++)) + do + if ! ss -tln | grep -sqE ":$port\b"; then + nbd_tcp_port=$port + return + fi + done + + echo "Cannot find free TCP port for nbd in range 10809-10909" + exit 1 +} + +function nbd_server_wait_for_tcp_socket() +{ + pid=$1 + + for ((i = 0; i < 300; i++)) + do + if ss -tln | grep -sqE ":$nbd_tcp_port\b"; then + return + fi + kill -s 0 $pid 2>/dev/null + if test $? != 0 + then + echo "qemu-nbd unexpectedly quit" + exit 1 + fi + sleep 0.1 + done + echo "Failed in check of TCP socket created by qemu-nbd" + exit 1 +} + +function nbd_server_start_tcp_socket() +{ + nbd_server_stop + $QEMU_NBD -v -t -b $nbd_tcp_addr -p $nbd_tcp_port "$@" & + nbd_server_wait_for_tcp_socket $! +}
tests/qemu-iotests/233 new file +102 -0
102 lines not on this page · raw message
tests/qemu-iotests/233.out new file +30 -0
@@ -0,0 +1,30 @@ +QA output created by 233 + +== preparing TLS creds == +Generating a self signed certificate... +Generating a self signed certificate... +Generating a signed certificate... +Generating a signed certificate... +Generating a signed certificate... + +== preparing image == +Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 + +== check TLS client to plain server fails == +qemu-img: Could not open 'driver=nbd,host=127.0.0.1,port=PORT,tls-creds=tls0': Denied by server for option 5 (starttls) +server reported: TLS not configured + +== check plain client to TLS server fails == +qemu-img: Could not open 'nbd://localhost:PORT': TLS negotiation required before option 8 (structured reply) +server reported: Option 0x8 not permitted before TLS + +== check TLS works == +image: nbd://127.0.0.1:PORT +file format: nbd +virtual size: 64M (67108864 bytes) +disk size: unavailable + +== check TLS with different CA fails == +option negotiation failed: Verify failed: No certificate was found. +qemu-img: Could not open 'driver=nbd,host=127.0.0.1,port=PORT,tls-creds=tls0': The certificate hasn't got a known issuer +*** done
tests/qemu-iotests/group +1 -0
@@ -229,3 +229,4 @@ 229 auto quick 231 auto quick 232 auto quick +233 auto quick
Signature · 1 line
2.17.2
[Qemu-devel] [PULL 12/12] iotests: Drop use of bash keyword 'function'
In reply to Eric BlakeBash allows functions to be declared with or without the leading keyword 'function'; but including the keyword does not comply with POSIX syntax, and is confusing to ksh users where the use of the keyword changes the scoping rules for functions. Stick to the POSIX form through iotests.
Done mechanically with:
sed -i 's/^function //' $(git ls-files tests/qemu-iotests)
Message-Id: <[email protected]>
--- tests/qemu-iotests/common.nbd | 12 ++++++------ tests/qemu-iotests/common.pattern | 16 ++++++++-------- tests/qemu-iotests/common.qemu | 8 ++++---- tests/qemu-iotests/common.tls | 10 +++++----- tests/qemu-iotests/035 | 2 +- tests/qemu-iotests/037 | 2 +- tests/qemu-iotests/038 | 6 +++--- tests/qemu-iotests/046 | 6 +++--- tests/qemu-iotests/047 | 2 +- tests/qemu-iotests/049 | 4 ++-- tests/qemu-iotests/051 | 4 ++-- tests/qemu-iotests/067 | 4 ++-- tests/qemu-iotests/071 | 4 ++-- tests/qemu-iotests/077 | 4 ++-- tests/qemu-iotests/081 | 4 ++-- tests/qemu-iotests/082 | 2 +- tests/qemu-iotests/085 | 10 +++++----- tests/qemu-iotests/086 | 2 +- tests/qemu-iotests/087 | 6 +++--- tests/qemu-iotests/099 | 6 +++--- tests/qemu-iotests/109 | 2 +- tests/qemu-iotests/112 | 2 +- tests/qemu-iotests/142 | 8 ++++---- tests/qemu-iotests/153 | 4 ++-- tests/qemu-iotests/157 | 4 ++-- tests/qemu-iotests/172 | 6 +++--- tests/qemu-iotests/176 | 2 +- tests/qemu-iotests/177 | 2 +- tests/qemu-iotests/184 | 4 ++-- tests/qemu-iotests/186 | 4 ++-- tests/qemu-iotests/195 | 4 ++-- tests/qemu-iotests/204 | 2 +- tests/qemu-iotests/223 | 4 ++-- tests/qemu-iotests/227 | 4 ++-- tests/qemu-iotests/232 | 6 +++--- 35 files changed, 86 insertions(+), 86 deletions(-)
tests/qemu-iotests/common.nbd +6 -6
@@ -23,7 +23,7 @@ nbd_unix_socket="${TEST_DIR}/qemu-nbd.sock" nbd_tcp_addr="127.0.0.1" nbd_pid_file="${TEST_DIR}/qemu-nbd.pid" -function nbd_server_stop() +nbd_server_stop() { local NBD_PID if [ -f "$nbd_pid_file" ]; then
@@ -36,7 +36,7 @@ function nbd_server_stop() rm -f "$nbd_unix_socket" } -function nbd_server_wait_for_unix_socket() +nbd_server_wait_for_unix_socket() { pid=$1
@@ -57,14 +57,14 @@ function nbd_server_wait_for_unix_socket() exit 1 } -function nbd_server_start_unix_socket() +nbd_server_start_unix_socket() { nbd_server_stop $QEMU_NBD -v -t -k "$nbd_unix_socket" "$@" & nbd_server_wait_for_unix_socket $! } -function nbd_server_set_tcp_port() +nbd_server_set_tcp_port() { (ss --help) >/dev/null 2>&1 || _notrun "ss utility not found, skipping test"
@@ -80,7 +80,7 @@ function nbd_server_set_tcp_port() exit 1 } -function nbd_server_wait_for_tcp_socket() +nbd_server_wait_for_tcp_socket() { pid=$1
@@ -101,7 +101,7 @@ function nbd_server_wait_for_tcp_socket() exit 1 } -function nbd_server_start_tcp_socket() +nbd_server_start_tcp_socket() { nbd_server_stop $QEMU_NBD -v -t -b $nbd_tcp_addr -p $nbd_tcp_port "$@" &
tests/qemu-iotests/common.pattern +8 -8
@@ -16,7 +16,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # -function do_is_allocated() { +do_is_allocated() { local start=$1 local size=$2 local step=$3
@@ -27,11 +27,11 @@ function do_is_allocated() { done } -function is_allocated() { +is_allocated() { do_is_allocated "$@" | $QEMU_IO "$TEST_IMG" | _filter_qemu_io } -function do_io() { +do_io() { local op=$1 local start=$2 local size=$3
@@ -45,22 +45,22 @@ function do_io() { done } -function io_pattern() { +io_pattern() { do_io "$@" | $QEMU_IO "$TEST_IMG" | _filter_qemu_io } -function io() { +io() { local start=$2 local pattern=$(( (start >> 9) % 256 )) do_io "$@" $pattern | $QEMU_IO "$TEST_IMG" | _filter_qemu_io } -function io_zero() { +io_zero() { do_io "$@" 0 | $QEMU_IO "$TEST_IMG" | _filter_qemu_io } -function io_test() { +io_test() { local op=$1 local offset=$2 local cluster_size=$3
@@ -100,7 +100,7 @@ function io_test() { offset=$((offset + num_large * ( l2_size + half_cluster ))) } -function io_test2() { +io_test2() { local orig_offset=$1 local cluster_size=$2 local num=$3
tests/qemu-iotests/common.qemu +4 -4
@@ -60,7 +60,7 @@ _in_fd=4 # $3: A string to search for in the response; if found, this indicates # failure and the test is either aborted (if $qemu_error_no_exit # is not set) or ${QEMU_STATUS[$1]} is set to -1 (otherwise). -function _timed_wait_for() +_timed_wait_for() { local h=${1} shift
@@ -131,7 +131,7 @@ function _timed_wait_for() # strings the response will be scanned for. The first of the two # indicates success, the latter indicates failure. Failure is handled # like a timeout. -function _send_qemu_cmd() +_send_qemu_cmd() { local h=${1} local count=1
@@ -186,7 +186,7 @@ function _send_qemu_cmd() # Returns: # $QEMU_HANDLE: set to a handle value to communicate with this QEMU instance. # -function _launch_qemu() +_launch_qemu() { local comm= local fifo_out=
@@ -262,7 +262,7 @@ function _launch_qemu() # If $wait is set to anything other than the empty string, the process will not # be killed but only waited for, and any output will be forwarded to stdout. If # $wait is empty, the process will be killed and all output will be suppressed. -function _cleanup_qemu() +_cleanup_qemu() { # QEMU_PID[], QEMU_IN[], QEMU_OUT[] all use same indices for i in "${!QEMU_OUT[@]}"
tests/qemu-iotests/common.tls +5 -5
@@ -20,7 +20,7 @@ tls_dir="${TEST_DIR}/tls" -function tls_x509_cleanup() +tls_x509_cleanup() { rm -f "${tls_dir}"/*.pem rm -f "${tls_dir}"/*/*.pem
@@ -29,7 +29,7 @@ function tls_x509_cleanup() } -function tls_x509_init() +tls_x509_init() { mkdir -p "${tls_dir}"
@@ -58,7 +58,7 @@ EOF } -function tls_x509_create_root_ca() +tls_x509_create_root_ca() { name=${1:-ca-cert}
@@ -77,7 +77,7 @@ EOF } -function tls_x509_create_server() +tls_x509_create_server() { caname=$1 name=$2
@@ -108,7 +108,7 @@ EOF } -function tls_x509_create_client() +tls_x509_create_client() { caname=$1 name=$2
tests/qemu-iotests/035 +1 -1
@@ -49,7 +49,7 @@ echo echo "creating image" _make_test_img $size -function generate_requests() { +generate_requests() { for i in $(seq 0 63); do echo "aio_write ${i}M 512" echo "aio_write ${i}M 512"
tests/qemu-iotests/037 +1 -1
@@ -54,7 +54,7 @@ TEST_IMG="$TEST_IMG.base" _make_test_img $size -function backing_io() +backing_io() { local offset=$1 local sectors=$2
tests/qemu-iotests/038 +3 -3
@@ -51,7 +51,7 @@ TEST_IMG="$TEST_IMG.base" _make_test_img $size -function backing_io() +backing_io() { local offset=$1 local sectors=$2
@@ -76,7 +76,7 @@ _make_test_img -b "$TEST_IMG.base" 6G echo echo "== Some concurrent requests touching the same cluster ==" -function overlay_io() +overlay_io() { # Start with a request touching two clusters echo aio_write -P 0x80 2020k 80k
@@ -102,7 +102,7 @@ overlay_io | $QEMU_IO "$TEST_IMG" | _filter_qemu_io |\ echo echo "== Verify image content ==" -function verify_io() +verify_io() { echo read -P 31 2016k 4k echo read -P 0x80 2020k 80k
tests/qemu-iotests/046 +3 -3
@@ -48,7 +48,7 @@ echo "== creating backing file for COW tests ==" _make_test_img $size -function backing_io() +backing_io() { local offset=$1 local sectors=$2
@@ -73,7 +73,7 @@ _make_test_img -b "$TEST_IMG.base" 6G echo echo "== Some concurrent requests touching the same cluster ==" -function overlay_io() +overlay_io() { # Allocate middle of cluster 1, then write to somewhere before and after it cat <<EOF
@@ -189,7 +189,7 @@ overlay_io | $QEMU_IO blkdebug::"$TEST_IMG" | _filter_qemu_io |\ echo echo "== Verify image content ==" -function verify_io() +verify_io() { if ($QEMU_IMG info -U -f "$IMGFMT" "$TEST_IMG" | grep "compat: 0.10" > /dev/null); then # For v2 images, discarded clusters are read from the backing file
tests/qemu-iotests/047 +1 -1
@@ -45,7 +45,7 @@ size=128M _make_test_img $size -function qemu_io_cmds() +qemu_io_cmds() { cat <<EOF write -P 0x66 0 320k
tests/qemu-iotests/049 +2 -2
@@ -40,13 +40,13 @@ _supported_fmt qcow2 _supported_proto file _supported_os Linux -function filter_test_dir() +filter_test_dir() { sed -e "s#$IMGPROTO:$TEST_DIR#TEST_DIR#g" \ -e "s#$TEST_DIR#TEST_DIR#g" } -function test_qemu_img() +test_qemu_img() { echo qemu-img "$@" | filter_test_dir $QEMU_IMG "$@" 2>&1 | filter_test_dir
tests/qemu-iotests/051 +2 -2
@@ -43,7 +43,7 @@ _supported_os Linux # other than refcount_bits=16 _unsupported_imgopts 'refcount_bits=\([^1]\|.\([^6]\|$\)\)' -function do_run_qemu() +do_run_qemu() { echo Testing: "$@" (
@@ -57,7 +57,7 @@ function do_run_qemu() echo } -function run_qemu() +run_qemu() { do_run_qemu "$@" 2>&1 | _filter_testdir | _filter_qemu | _filter_generated_node_ids | _filter_hmp
tests/qemu-iotests/067 +2 -2
@@ -36,7 +36,7 @@ _supported_os Linux # Because anything other than 16 would change the output of query-block _unsupported_imgopts 'refcount_bits=\([^1]\|.\([^6]\|$\)\)' -function do_run_qemu() +do_run_qemu() { echo Testing: "$@" $QEMU -nographic -qmp-pretty stdio -serial none "$@"
@@ -52,7 +52,7 @@ _filter_qmp_events() | tr '\t' '\n' } -function run_qemu() +run_qemu() { do_run_qemu "$@" 2>&1 | _filter_testdir | _filter_qmp | _filter_qemu \ | _filter_actual_image_size \
tests/qemu-iotests/071 +2 -2
@@ -40,14 +40,14 @@ _supported_fmt qcow2 _supported_proto file _supported_os Linux -function do_run_qemu() +do_run_qemu() { echo Testing: "$@" | _filter_imgfmt $QEMU -nographic -qmp stdio -serial none "$@" echo } -function run_qemu() +run_qemu() { do_run_qemu "$@" 2>&1 | _filter_testdir | _filter_qemu | _filter_qmp | _filter_qemu_io }
tests/qemu-iotests/077 +2 -2
@@ -48,7 +48,7 @@ _make_test_img $size echo echo "== Some concurrent requests involving RMW ==" -function test_io() +test_io() { echo "open -o driver=$IMGFMT,file.align=4k blkdebug::$TEST_IMG" # A simple RMW request
@@ -193,7 +193,7 @@ test_io | $QEMU_IO | _filter_qemu_io | \ echo echo "== Verify image content ==" -function verify_io() +verify_io() { # A simple RMW request echo read -P 0 0 0x200
tests/qemu-iotests/081 +2 -2
@@ -42,14 +42,14 @@ _supported_fmt raw _supported_proto file _supported_os Linux -function do_run_qemu() +do_run_qemu() { echo Testing: "$@" | _filter_imgfmt $QEMU -nographic -qmp stdio -serial none "$@" echo } -function run_qemu() +run_qemu() { do_run_qemu "$@" 2>&1 | _filter_testdir | _filter_qemu | _filter_qmp\ | _filter_qemu_io | _filter_generated_node_ids
tests/qemu-iotests/082 +1 -1
@@ -40,7 +40,7 @@ _supported_fmt qcow2 _supported_proto file nfs _supported_os Linux -function run_qemu_img() +run_qemu_img() { echo echo Testing: "$@" | _filter_testdir
tests/qemu-iotests/085 +5 -5
@@ -60,7 +60,7 @@ _supported_os Linux # ${1}: unique identifier for the snapshot filename -function create_single_snapshot() +create_single_snapshot() { cmd="{ 'execute': 'blockdev-snapshot-sync', 'arguments': { 'device': 'virtio0',
@@ -70,7 +70,7 @@ function create_single_snapshot() } # ${1}: unique identifier for the snapshot filename -function create_group_snapshot() +create_group_snapshot() { cmd="{ 'execute': 'transaction', 'arguments': {'actions': [
@@ -88,7 +88,7 @@ function create_group_snapshot() # ${1}: unique identifier for the snapshot filename # ${2}: extra_params to the blockdev-add command # ${3}: filename -function do_blockdev_add() +do_blockdev_add() { cmd="{ 'execute': 'blockdev-add', 'arguments': { 'driver': 'qcow2', 'node-name': 'snap_${1}', ${2}
@@ -99,7 +99,7 @@ function do_blockdev_add() } # ${1}: unique identifier for the snapshot filename -function add_snapshot_image() +add_snapshot_image() { base_image="${TEST_DIR}/$((${1}-1))-${snapshot_virt0}" snapshot_file="${TEST_DIR}/${1}-${snapshot_virt0}"
@@ -110,7 +110,7 @@ function add_snapshot_image() # ${1}: unique identifier for the snapshot filename # ${2}: expected response, defaults to 'return' -function blockdev_snapshot() +blockdev_snapshot() { cmd="{ 'execute': 'blockdev-snapshot', 'arguments': { 'node': 'virtio0',
tests/qemu-iotests/086 +1 -1
@@ -40,7 +40,7 @@ _supported_fmt qcow2 raw _supported_proto file _supported_os Linux -function run_qemu_img() +run_qemu_img() { echo echo Testing: "$@" | _filter_testdir
tests/qemu-iotests/087 +3 -3
@@ -34,14 +34,14 @@ _supported_fmt qcow2 _supported_proto file _supported_os Linux -function do_run_qemu() +do_run_qemu() { echo Testing: "$@" $QEMU -nographic -qmp stdio -serial none "$@" echo } -function run_qemu() +run_qemu() { do_run_qemu "$@" 2>&1 | _filter_testdir | _filter_qmp \ | _filter_qemu | _filter_imgfmt \
@@ -102,7 +102,7 @@ echo === aio=native without O_DIRECT === echo # Skip this test if AIO is not enabled in this build -function run_qemu_filter_aio() +run_qemu_filter_aio() { run_qemu "$@" | \ sed -e 's/is not supported in this build/it requires cache.direct=on, which was not specified/'
tests/qemu-iotests/099 +3 -3
@@ -45,12 +45,12 @@ _supported_os Linux _unsupported_imgopts "subformat=monolithicFlat" "subformat=twoGbMaxExtentFlat" \ "subformat=twoGbMaxExtentSparse" -function do_run_qemu() +do_run_qemu() { $QEMU -nographic -qmp stdio -serial none "$@" } -function run_qemu() +run_qemu() { # Get the "file": "foo" entry ($foo may only contain escaped double quotes, # which is how we can extract it)
@@ -59,7 +59,7 @@ function run_qemu() | sed -e 's/^.*"file": "\(\(\\"\|[^"]\)*\)".*$/\1/' -e 's/\\"/"/g' } -function test_qemu() +test_qemu() { run_qemu -drive "if=none,id=drv0,$1" <<EOF { 'execute': 'qmp_capabilities' }
tests/qemu-iotests/109 +1 -1
@@ -45,7 +45,7 @@ _supported_os Linux qemu_comm_method=qmp -function run_qemu() +run_qemu() { local raw_img="$1" local source_img="$2"
tests/qemu-iotests/112 +1 -1
@@ -44,7 +44,7 @@ _supported_os Linux # manual setting; compat will be overridden as well _unsupported_imgopts refcount_bits 'compat=0.10' -function print_refcount_bits() +print_refcount_bits() { $QEMU_IMG info "$TEST_IMG" | sed -n '/refcount bits:/ s/^ *//p' }
tests/qemu-iotests/142 +4 -4
@@ -45,7 +45,7 @@ _supported_os Linux _default_cache_mode none _supported_cache_modes none directsync -function do_run_qemu() +do_run_qemu() { echo Testing: "$@" (
@@ -59,7 +59,7 @@ function do_run_qemu() echo } -function run_qemu() +run_qemu() { do_run_qemu "$@" 2>&1 | _filter_testdir | _filter_qemu | _filter_hmp }
@@ -88,7 +88,7 @@ echo files="if=none,file=$TEST_IMG,backing.file.filename=$TEST_IMG.base" ids="node-name=image,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file" -function check_cache_all() +check_cache_all() { # cache.direct is supposed to be inherited by both bs->file and # bs->backing
@@ -231,7 +231,7 @@ drv_bk="if=none,file=json:{'driver':'$IMGFMT',,'file':'backing-file',,'node-name drv_file="if=none,driver=file,filename=$TEST_IMG,node-name=file" drv_img="if=none,id=blk,file=json:{'driver':'$IMGFMT',,'file':'file',,'backing':'backing',,'node-name':'image'}" -function check_cache_all_separate() +check_cache_all_separate() { # Check cache.direct
tests/qemu-iotests/153 +2 -2
@@ -70,7 +70,7 @@ _run_cmd() (echo "$@"; "$@" 2>&1 1>/dev/null) | _filter_testdir } -function _do_run_qemu() +_do_run_qemu() { ( if ! test -t 0; then
@@ -82,7 +82,7 @@ function _do_run_qemu() ) | $QEMU -nographic -monitor stdio -serial none "$@" 1>/dev/null } -function _run_qemu_with_images() +_run_qemu_with_images() { _do_run_qemu \ $(for i in $@; do echo "-drive if=none,file=$i"; done) 2>&1 \
tests/qemu-iotests/157 +2 -2
@@ -40,7 +40,7 @@ _supported_fmt generic _supported_proto file _supported_os Linux -function do_run_qemu() +do_run_qemu() { ( if ! test -t 0; then
@@ -53,7 +53,7 @@ function do_run_qemu() echo } -function run_qemu() +run_qemu() { do_run_qemu "$@" 2>&1 | _filter_testdir | _filter_imgfmt \ | _filter_qemu | _filter_generated_node_ids
tests/qemu-iotests/172 +3 -3
@@ -46,7 +46,7 @@ if [ "$QEMU_DEFAULT_MACHINE" != "pc" ]; then _notrun "Requires a PC machine" fi -function do_run_qemu() +do_run_qemu() { ( if ! test -t 0; then
@@ -59,7 +59,7 @@ function do_run_qemu() echo } -function check_floppy_qtree() +check_floppy_qtree() { echo echo Testing: "$@" | _filter_testdir
@@ -75,7 +75,7 @@ function check_floppy_qtree() _filter_win32 | _filter_qemu } -function check_cache_mode() +check_cache_mode() { echo "info block none0" | QEMU_OPTIONS="" do_run_qemu -drive if=none,file="$TEST_IMG" "$@" |
tests/qemu-iotests/176 +1 -1
@@ -50,7 +50,7 @@ _supported_os Linux # Persistent dirty bitmaps require compat=1.1 _unsupported_imgopts 'compat=0.10' -function run_qemu() +run_qemu() { $QEMU -nographic -qmp stdio -serial none "$@" 2>&1 \ | _filter_testdir | _filter_qmp | _filter_qemu \
tests/qemu-iotests/177 +1 -1
@@ -85,7 +85,7 @@ $QEMU_IO -c "open -o $options,$limits blkdebug::$TEST_IMG" \ echo echo "== verify image content ==" -function verify_io() +verify_io() { if ($QEMU_IMG info -f "$IMGFMT" "$TEST_IMG" | grep "compat: 0.10" > /dev/null); then
tests/qemu-iotests/184 +2 -2
@@ -34,14 +34,14 @@ trap "exit \$status" 0 1 2 3 15 _supported_os Linux -function do_run_qemu() +do_run_qemu() { echo Testing: "$@" | _filter_imgfmt $QEMU -nographic -qmp-pretty stdio -serial none "$@" echo } -function run_qemu() +run_qemu() { do_run_qemu "$@" 2>&1 | _filter_testdir | _filter_qemu | _filter_qmp\ | _filter_qemu_io | _filter_generated_node_ids \
tests/qemu-iotests/186 +2 -2
@@ -44,7 +44,7 @@ if [ "$QEMU_DEFAULT_MACHINE" != "pc" ]; then _notrun "Requires a PC machine" fi -function do_run_qemu() +do_run_qemu() { echo Testing: "$@"
@@ -59,7 +59,7 @@ function do_run_qemu() echo } -function check_info_block() +check_info_block() { echo "info block" | do_run_qemu "$@" | _filter_win32 | _filter_hmp | _filter_qemu |
tests/qemu-iotests/195 +2 -2
@@ -41,14 +41,14 @@ _supported_fmt qcow2 _supported_proto file _supported_os Linux -function do_run_qemu() +do_run_qemu() { echo Testing: "$@" $QEMU -nographic -qmp-pretty stdio -serial none "$@" echo } -function run_qemu() +run_qemu() { do_run_qemu "$@" 2>&1 | _filter_testdir | _filter_imgfmt | _filter_qemu \ | _filter_qmp | _filter_qemu_io \
tests/qemu-iotests/204 +1 -1
@@ -93,7 +93,7 @@ $QEMU_IO -c "open -o $options,$limits blkdebug::$TEST_IMG" \ echo echo "== verify image content ==" -function verify_io() +verify_io() { echo read -P 22 0 1000 echo read -P 33 1000 128k
tests/qemu-iotests/223 +2 -2
@@ -42,14 +42,14 @@ _supported_os Linux # Persistent dirty bitmaps require compat=1.1 _unsupported_imgopts 'compat=0.10' -function do_run_qemu() +do_run_qemu() { echo Testing: "$@" $QEMU -nographic -qmp stdio -serial none "$@" echo } -function run_qemu() +run_qemu() { do_run_qemu "$@" 2>&1 | _filter_testdir | _filter_qmp \ | _filter_qemu | _filter_imgfmt \
tests/qemu-iotests/227 +2 -2
@@ -40,14 +40,14 @@ _supported_fmt generic _supported_proto file _supported_os Linux -function do_run_qemu() +do_run_qemu() { echo Testing: "$@" $QEMU -nographic -qmp-pretty stdio -serial none "$@" echo } -function run_qemu() +run_qemu() { do_run_qemu "$@" 2>&1 | _filter_testdir | _filter_qmp \ | _filter_qemu | _filter_imgfmt \
tests/qemu-iotests/232 +3 -3
@@ -41,7 +41,7 @@ _supported_fmt generic _supported_proto file _supported_os Linux -function do_run_qemu() +do_run_qemu() { echo Testing: "$@" (
@@ -55,13 +55,13 @@ function do_run_qemu() echo } -function run_qemu() +run_qemu() { do_run_qemu "$@" 2>&1 | _filter_testdir | _filter_qemu | _filter_hmp | _filter_generated_node_ids | _filter_imgfmt } -function run_qemu_info_block() +run_qemu_info_block() { echo "info block -n" | run_qemu "$@" | grep -e "(file" -e "QEMU_PROG" }
Signature · 1 line
2.17.2
[Qemu-devel] [PULL 01/12] qemu-iotests: remove unused variable 'here'
In reply to Eric BlakeFrom: Mao Zhongyi <[email protected]>
Running
git grep '\$here' tests/qemu-iotests
has 0 hits, which means we are setting a variable that has no use. It appears that commit e8f8624d removed the last use. So execute the following cmd to remove all of the 'here=...' lines as dead code.
sed -i '/^here=/d' $(git grep -l '^here=' tests/qemu-iotests)
Message-Id: <[email protected]>
--- tests/qemu-iotests/001 | 1 - tests/qemu-iotests/002 | 1 - tests/qemu-iotests/003 | 1 - tests/qemu-iotests/004 | 1 - tests/qemu-iotests/005 | 1 - tests/qemu-iotests/007 | 1 - tests/qemu-iotests/008 | 1 - tests/qemu-iotests/009 | 1 - tests/qemu-iotests/010 | 1 - tests/qemu-iotests/011 | 1 - tests/qemu-iotests/012 | 1 - tests/qemu-iotests/013 | 1 - tests/qemu-iotests/014 | 1 - tests/qemu-iotests/015 | 1 - tests/qemu-iotests/017 | 1 - tests/qemu-iotests/018 | 1 - tests/qemu-iotests/019 | 1 - tests/qemu-iotests/020 | 1 - tests/qemu-iotests/021 | 1 - tests/qemu-iotests/022 | 1 - tests/qemu-iotests/023 | 1 - tests/qemu-iotests/024 | 1 - tests/qemu-iotests/025 | 1 - tests/qemu-iotests/026 | 1 - tests/qemu-iotests/027 | 1 - tests/qemu-iotests/028 | 1 - tests/qemu-iotests/029 | 1 - tests/qemu-iotests/031 | 1 - tests/qemu-iotests/032 | 1 - tests/qemu-iotests/033 | 1 - tests/qemu-iotests/034 | 1 - tests/qemu-iotests/035 | 1 - tests/qemu-iotests/036 | 1 - tests/qemu-iotests/037 | 1 - tests/qemu-iotests/038 | 1 - tests/qemu-iotests/039 | 1 - tests/qemu-iotests/042 | 1 - tests/qemu-iotests/043 | 1 - tests/qemu-iotests/046 | 1 - tests/qemu-iotests/047 | 1 - tests/qemu-iotests/049 | 1 - tests/qemu-iotests/050 | 1 - tests/qemu-iotests/051 | 1 - tests/qemu-iotests/052 | 1 - tests/qemu-iotests/053 | 1 - tests/qemu-iotests/054 | 1 - tests/qemu-iotests/058 | 1 - tests/qemu-iotests/059 | 1 - tests/qemu-iotests/060 | 1 - tests/qemu-iotests/061 | 1 - tests/qemu-iotests/062 | 1 - tests/qemu-iotests/063 | 1 - tests/qemu-iotests/064 | 1 - tests/qemu-iotests/066 | 1 - tests/qemu-iotests/067 | 1 - tests/qemu-iotests/068 | 1 - tests/qemu-iotests/069 | 1 - tests/qemu-iotests/070 | 1 - tests/qemu-iotests/071 | 1 - tests/qemu-iotests/072 | 1 - tests/qemu-iotests/073 | 1 - tests/qemu-iotests/075 | 1 - tests/qemu-iotests/076 | 1 - tests/qemu-iotests/077 | 1 - tests/qemu-iotests/078 | 1 - tests/qemu-iotests/079 | 1 - tests/qemu-iotests/080 | 1 - tests/qemu-iotests/081 | 1 - tests/qemu-iotests/082 | 1 - tests/qemu-iotests/083 | 1 - tests/qemu-iotests/084 | 1 - tests/qemu-iotests/085 | 1 - tests/qemu-iotests/086 | 1 - tests/qemu-iotests/087 | 1 - tests/qemu-iotests/088 | 1 - tests/qemu-iotests/089 | 1 - tests/qemu-iotests/090 | 1 - tests/qemu-iotests/091 | 1 - tests/qemu-iotests/092 | 1 - tests/qemu-iotests/094 | 1 - tests/qemu-iotests/095 | 1 - tests/qemu-iotests/097 | 1 - tests/qemu-iotests/098 | 1 - tests/qemu-iotests/099 | 1 - tests/qemu-iotests/101 | 1 - tests/qemu-iotests/102 | 1 - tests/qemu-iotests/103 | 1 - tests/qemu-iotests/104 | 1 - tests/qemu-iotests/105 | 1 - tests/qemu-iotests/106 | 1 - tests/qemu-iotests/107 | 1 - tests/qemu-iotests/108 | 1 - tests/qemu-iotests/109 | 1 - tests/qemu-iotests/110 | 1 - tests/qemu-iotests/111 | 1 - tests/qemu-iotests/112 | 1 - tests/qemu-iotests/113 | 1 - tests/qemu-iotests/114 | 1 - tests/qemu-iotests/115 | 1 - tests/qemu-iotests/116 | 1 - tests/qemu-iotests/117 | 1 - tests/qemu-iotests/119 | 1 - tests/qemu-iotests/120 | 1 - tests/qemu-iotests/121 | 1 - tests/qemu-iotests/122 | 1 - tests/qemu-iotests/123 | 1 - tests/qemu-iotests/125 | 1 - tests/qemu-iotests/126 | 1 - tests/qemu-iotests/127 | 1 - tests/qemu-iotests/128 | 1 - tests/qemu-iotests/130 | 1 - tests/qemu-iotests/131 | 1 - tests/qemu-iotests/133 | 1 - tests/qemu-iotests/134 | 1 - tests/qemu-iotests/135 | 1 - tests/qemu-iotests/137 | 1 - tests/qemu-iotests/138 | 1 - tests/qemu-iotests/140 | 1 - tests/qemu-iotests/141 | 1 - tests/qemu-iotests/142 | 1 - tests/qemu-iotests/143 | 1 - tests/qemu-iotests/144 | 1 - tests/qemu-iotests/145 | 1 - tests/qemu-iotests/146 | 1 - tests/qemu-iotests/150 | 1 - tests/qemu-iotests/153 | 1 - tests/qemu-iotests/154 | 1 - tests/qemu-iotests/156 | 1 - tests/qemu-iotests/157 | 1 - tests/qemu-iotests/158 | 1 - tests/qemu-iotests/159 | 1 - tests/qemu-iotests/160 | 1 - tests/qemu-iotests/162 | 1 - tests/qemu-iotests/170 | 1 - tests/qemu-iotests/171 | 1 - tests/qemu-iotests/172 | 1 - tests/qemu-iotests/173 | 1 - tests/qemu-iotests/174 | 1 - tests/qemu-iotests/175 | 1 - tests/qemu-iotests/176 | 1 - tests/qemu-iotests/177 | 1 - tests/qemu-iotests/178 | 1 - tests/qemu-iotests/179 | 1 - tests/qemu-iotests/181 | 1 - tests/qemu-iotests/182 | 1 - tests/qemu-iotests/183 | 1 - tests/qemu-iotests/184 | 1 - tests/qemu-iotests/185 | 1 - tests/qemu-iotests/186 | 1 - tests/qemu-iotests/187 | 1 - tests/qemu-iotests/188 | 1 - tests/qemu-iotests/189 | 1 - tests/qemu-iotests/190 | 1 - tests/qemu-iotests/191 | 1 - tests/qemu-iotests/192 | 1 - tests/qemu-iotests/195 | 1 - tests/qemu-iotests/197 | 1 - tests/qemu-iotests/198 | 1 - tests/qemu-iotests/200 | 1 - tests/qemu-iotests/204 | 1 - tests/qemu-iotests/214 | 1 - tests/qemu-iotests/215 | 1 - tests/qemu-iotests/221 | 1 - tests/qemu-iotests/223 | 1 - tests/qemu-iotests/225 | 1 - tests/qemu-iotests/226 | 1 - tests/qemu-iotests/227 | 1 - tests/qemu-iotests/229 | 1 - tests/qemu-iotests/231 | 1 - tests/qemu-iotests/232 | 1 - 170 files changed, 170 deletions(-)
tests/qemu-iotests/001 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/002 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/003 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/004 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/005 +0 -1
@@ -27,7 +27,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/007 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/008 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/009 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/010 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/011 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/012 +0 -1
@@ -26,7 +26,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/013 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/014 +0 -1
@@ -26,7 +26,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/015 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/017 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/018 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/019 +0 -1
@@ -26,7 +26,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/020 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/021 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/022 +0 -1
@@ -26,7 +26,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/023 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/024 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/025 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/026 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/027 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/028 +0 -1
@@ -27,7 +27,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/029 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/031 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/032 +0 -1
@@ -26,7 +26,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/033 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/034 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/035 +0 -1
@@ -25,7 +25,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/036 +0 -1
@@ -27,7 +27,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/037 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/038 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/039 +0 -1
@@ -27,7 +27,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/042 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/043 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/046 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/047 +0 -1
@@ -25,7 +25,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/049 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/050 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/051 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/052 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/053 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/054 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/058 +0 -1
@@ -26,7 +26,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! nbd_unix_socket=$TEST_DIR/test_qemu_nbd_socket
tests/qemu-iotests/059 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/060 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/061 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/062 +0 -1
@@ -25,7 +25,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/063 +0 -1
@@ -25,7 +25,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/064 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/066 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/067 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/068 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/069 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/070 +0 -1
@@ -25,7 +25,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/071 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/072 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/073 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/075 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/076 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/077 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/078 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/079 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/080 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/081 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/082 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/083 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/084 +0 -1
@@ -25,7 +25,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/085 +0 -1
@@ -29,7 +29,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! snapshot_virt0="snapshot-v0.qcow2"
tests/qemu-iotests/086 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/087 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/088 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/089 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/090 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/091 +0 -1
@@ -26,7 +26,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! MIG_FIFO="${TEST_DIR}/migrate"
tests/qemu-iotests/092 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/094 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/095 +0 -1
@@ -27,7 +27,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/097 +0 -1
@@ -25,7 +25,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/098 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/099 +0 -1
@@ -25,7 +25,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/101 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/102 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=$(basename $0) echo "QA output created by $seq" -here=$PWD status=1 # failure is the default! _cleanup()
tests/qemu-iotests/103 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=$(basename $0) echo "QA output created by $seq" -here=$PWD status=1 # failure is the default! _cleanup()
tests/qemu-iotests/104 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! trap "exit \$status" 0 1 2 3 15
tests/qemu-iotests/105 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/106 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=$(basename $0) echo "QA output created by $seq" -here=$PWD status=1 # failure is the default! _cleanup()
tests/qemu-iotests/107 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/108 +0 -1
@@ -25,7 +25,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/109 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/110 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/111 +0 -1
@@ -25,7 +25,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/112 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/113 +0 -1
@@ -25,7 +25,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/114 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/115 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/116 +0 -1
@@ -27,7 +27,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/117 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/119 +0 -1
@@ -25,7 +25,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/120 +0 -1
@@ -25,7 +25,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/121 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/122 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/123 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/125 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=$(basename $0) echo "QA output created by $seq" -here=$PWD status=1 # failure is the default! _cleanup()
tests/qemu-iotests/126 +0 -1
@@ -25,7 +25,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/127 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=$(basename $0) echo "QA output created by $seq" -here=$PWD status=1 # failure is the default! _cleanup()
tests/qemu-iotests/128 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! devname="eiodev$$"
tests/qemu-iotests/130 +0 -1
@@ -26,7 +26,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/131 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/133 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/134 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/135 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/137 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/138 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/140 +0 -1
@@ -28,7 +28,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/141 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/142 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/143 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/144 +0 -1
@@ -26,7 +26,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! TMP_SNAP1=${TEST_DIR}/tmp.qcow2
tests/qemu-iotests/145 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/146 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/150 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/153 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" tmp=/tmp/$$ status=1 # failure is the default!
tests/qemu-iotests/154 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/156 +0 -1
@@ -32,7 +32,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/157 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/158 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/159 +0 -1
@@ -23,7 +23,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 _cleanup()
tests/qemu-iotests/160 +0 -1
@@ -23,7 +23,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 _cleanup()
tests/qemu-iotests/162 +0 -1
@@ -25,7 +25,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/170 +0 -1
@@ -23,7 +23,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 _cleanup()
tests/qemu-iotests/171 +0 -1
@@ -25,7 +25,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/172 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/173 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/174 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/175 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/176 +0 -1
@@ -29,7 +29,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/177 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/178 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/179 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/181 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! MIG_SOCKET="${TEST_DIR}/migrate"
tests/qemu-iotests/182 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" tmp=/tmp/$$ status=1 # failure is the default!
tests/qemu-iotests/183 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! MIG_SOCKET="${TEST_DIR}/migrate"
tests/qemu-iotests/184 +0 -1
@@ -24,7 +24,6 @@ owner="Manos Pitsidianakis" seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! trap "exit \$status" 0 1 2 3 15
tests/qemu-iotests/185 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/186 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/187 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/188 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/189 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/190 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/191 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/192 +0 -1
@@ -25,7 +25,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/195 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/197 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/198 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/200 +0 -1
@@ -26,7 +26,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/204 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/214 +0 -1
@@ -22,7 +22,6 @@ seq=$(basename "$0") echo "QA output created by $seq" -here=$PWD status=1 # failure is the default! _cleanup()
tests/qemu-iotests/215 +0 -1
@@ -21,7 +21,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! # get standard environment, filters and checks
tests/qemu-iotests/221 +0 -1
@@ -21,7 +21,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/223 +0 -1
@@ -21,7 +21,6 @@ seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/225 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=$(basename $0) echo "QA output created by $seq" -here=$PWD status=1 # failure is the default! _cleanup()
tests/qemu-iotests/226 +0 -1
@@ -25,7 +25,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/227 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=$(basename $0) echo "QA output created by $seq" -here=$PWD status=1 # failure is the default! _cleanup()
tests/qemu-iotests/229 +0 -1
@@ -25,7 +25,6 @@ [email protected] seq="$(basename $0)" echo "QA output created by $seq" -here="$PWD" status=1 # failure is the default! _cleanup()
tests/qemu-iotests/231 +0 -1
@@ -26,7 +26,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
tests/qemu-iotests/232 +0 -1
@@ -24,7 +24,6 @@ [email protected] seq=`basename $0` echo "QA output created by $seq" -here=`pwd` status=1 # failure is the default! _cleanup()
Signature · 1 line
2.17.2
Peter Maydell
AppliedQuoted 32 lines · Eric Blake
The following changes since commit
e6ebbd46b6e539f3613136111977721d212c2812:Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (2018-11-19 14:31:48 +0000)
are available in the Git repository at:
https://repo.or.cz/qemu/ericb.git tags/pull-nbd-2018-11-19
for you to fetch changes up to
8cedcffdc195bc39aeb1373826ba0a45629741e0:iotests: Drop use of bash keyword 'function' (2018-11-19 11:16:46 -0600)
There are still a couple of things I'm working on that might still qualify for 3.1, but given the timing of -rc2, it's getting more likely that they will shift into 4.0 instead:
- handling of unaligned images (also broken in 3.0, so not necessarily a regression - but does fix assertion failures)
- qemu-nbd command line option to query server's exports and info (would be new feature, but would make it a lot easier to test if existing x-dirty-block feature is working)Also, I did not spend enough time on this release reviewing Vladimir's additions for NBD reconnect, so that has now (sadly) slipped into 4.0.
The diffstat touches a large number of files, which is rather awkward for an -rc2 pull request - but those changes are mostly mechanical and mostly in the iotests subdirectory. The changes to the code base proper are quite small.
----------------------------------------------------------------
nbd patches for 2018-11-19
Quoted 7 lines
Add iotest coverage for NBD connections using TLS, including a couple of code fixes that it pointed out
- Mao Zhongyi: 0/3 Do some cleaning work in qemu-iotests
- Daniel P. Berrangé: io: return 0 for EOF in TLS session read after shutdown
- Daniel P. Berrangé: 0/6 Misc fixes to NBD
- Eric Blake: iotests: Drop use of bash keyword 'function'
Applied, thanks.
-- PMM