Lines Matching full:then
40 if ! command -v gsed >/dev/null 2>&1; then
42 then
58 then
62 then
136 if [ -n "$1" ]; then
167 if [[ "${VALGRIND_QEMU}" == "y" && "${NO_VALGRIND}" != "y" ]]; then
178 if [[ "${VALGRIND_QEMU}" == "y" && "${NO_VALGRIND}" != "y" ]]; then
179 if [ $RETVAL == 99 ]; then
190 if [ -n "${QEMU_NEED_PID}" ]; then
195 if [ -n "${GDB_OPTIONS}" ]; then
223 if [ "$IMGOPTSSYNTAX" = "true" ]; then
225 if [ -n "$IMGKEYSECRET" ]; then
255 if [ -n "${QSD_NEED_PID}" ]; then
280 if [ "$IMGOPTSSYNTAX" = "true" ]; then
283 if [ -n "$IMGKEYSECRET" ]; then
286 if [ "$IMGFMT" = "luks" ]; then
289 if [ "$IMGPROTO" = "file" ]; then
292 elif [ "$IMGPROTO" = "nbd" ]; then
296 elif [ "$IMGPROTO" = "fuse" ]; then
299 elif [ "$IMGPROTO" = "ssh" ]; then
302 elif [ "$IMGPROTO" = "nfs" ]; then
310 if [ "$IMGPROTO" = "file" ]; then
312 elif [ "$IMGPROTO" = "nbd" ]; then
315 elif [ "$IMGPROTO" = "fuse" ]; then
318 elif [ "$IMGPROTO" = "ssh" ]; then
322 elif [ "$IMGPROTO" = "nfs" ]; then
336 if [ -z "$TEST_DIR" ]; then
342 if [ ! -e "$TEST_DIR" ]; then
346 if [ ! -d "$TEST_DIR" ]; then
351 if [ -z "$REMOTE_TEST_DIR" ]; then
355 if [ ! -d "$SAMPLE_IMG_DIR" ]; then
366 then
374 if [ -f "${QEMU_TEST_DIR}/qemu-nbd.pid" ]; then
388 if ! echo "$IMGOPTS" | grep -q 'data_file='; then
437 if [[ $IMGPROTO == fuse && $TEST_IMG == $SOCK_DIR/fuse-* ]]; then
442 if [ -z "$TEST_IMG_FILE" ]; then
445 "$TEST_IMG_FILE" = "$ORIG_TEST_IMG_FILE" ]; then
448 if [ "$?" != 0 ]; then
457 if [ -n "$IMGOPTS" ]; then
461 if [ -n "$IMGKEYSECRET" ]; then
467 if [ "$use_backing" = "1" -a -z "$backing_file" ]; then
470 elif $opts_param; then
495 if [ \( "$IMGFMT" = "qcow2" -o "$IMGFMT" = "qed" \) -a -n "$CLUSTER_SIZE" ]; then
499 if [ -n "$optstr" ]; then
503 if [ $IMGPROTO = "nbd" ]; then
509 if [ $use_backing = 1 ]; then
520 if [ $IMGPROTO = "nbd" ]; then
527 if [ $IMGPROTO = "fuse" -a -f "$img_name" ]; then
534 if ! echo "$export_mp" | grep -q "^$SOCK_DIR"; then
573 if [[ $IMGPROTO == fuse && $img == $SOCK_DIR/fuse-* ]]; then
582 if [ "${FUSE_EXPORTS[i]}" = "$img" ]; then
588 if [ -z "$index" ]; then
604 if [ -n "$df_output" ]; then
605 if ! echo "$df_output" | grep -q "$img"; then
613 if [ "$timeout" = 0 ]; then
629 if [ "$IMGFMT" = "vmdk" ]; then
633 elif [ "$IMGFMT" = "qcow2" ]; then
635 if data_file=$(_get_data_file "$img"); then
667 then
684 if [ "$IMGOPTSSYNTAX" = "true" ]; then
700 if [ $status = 3 ]; then
711 if [[ "$1" == "--format-specific" ]]; then
732 if [[ $discard == 0 ]]; then
733 if [[ $format_specific == 0 && $line == "Format specific information:" ]]; then
735 elif [[ $line =~ "Child node '/" ]]; then
737 elif [[ $format_specific == 0 && $line =~ $regex_json_spec_start ]]; then
740 elif [[ $line =~ $regex_json_child_start ]]; then
745 if [[ $discard == 0 ]]; then
747 elif [[ $discard == 1 && ! $line ]]; then
750 elif [[ $discard == 2 && $line =~ $regex_json_end ]]; then
783 if [ "$f" = "$IMGFMT" -o "$f" = "generic" -a "$IMGFMT_GENERIC" = "true" ]; then
784 if [ "$IMGFMT" = "luks" ]; then
799 if [ "$f" = "$IMGFMT" ]; then
810 if [ "$f" = "$IMGPROTO" -o "$f" = "generic" ]; then
823 if [ "$f" = "$IMGPROTO" ]; then
837 then
848 if [ "$mode" = "$CACHEMODE" ]; then
868 if ! _check_o_direct; then
875 if [ $CACHEMODE == "none" ] || [ $CACHEMODE == "directsync" ]; then
886 if $CACHEMODE_IS_DEFAULT; then
887 if [ -z "$2" ] || _check_o_direct; then
900 if [ "$mode" = "$AIOMODE" ]; then
919 then
943 if [ $status != 0 ]; then
945 if [ -z "$reason" ]; then
956 if [ "$1" = "QEMU" ]; then
958 elif [ "$1" = "QEMU_IMG" ]; then
960 elif [ "$1" = "QEMU_IO" ]; then
962 elif [ "$1" = "QEMU_NBD" ]; then
978 if ! echo "$available" | grep -q " $driver\( \|$\)"; then
988 if [ -z "$TEST_IMG_FILE" ]; then
993 if ! truncate --size="$1" "$FILENAME"; then
1004 # allocate files, and then aggressively compresses writes even when full
1006 if [ -z "$TEST_IMG_FILE" ]; then
1011 if [ -e "FILENAME" ]; then
1016 if [ $(disk_usage "$FILENAME") -gt $((1024*1024)) ]; then
1020 if [ $(disk_usage "$FILENAME") -lt $((4*1024*1024)) ]; then
1024 if $unusable; then
1037 if ! echo "$available" | grep -q "$device" ; then
1049 if echo "$available" | grep -q "$device" ; then
1058 if [[ "$1" == "--no-filter-compression" ]]; then
1066 if [ -z "$img" ]; then
1070 if [[ $filter_compression == 0 ]]; then