Lines Matching full:1

40 if ! command -v gsed >/dev/null 2>&1; then
41 if sed --version 2>&1 | grep -v 'not GNU sed' | grep 'GNU sed' > /dev/null;
59 command dd --help | grep noxfer > /dev/null 2>&1
75 printf "$3" | dd "of=$1" bs=1 "seek=$2" conv=notrunc &>/dev/null
82 local img=$1 ofs=$2 len=$3 val=$4 str=''
96 local img=$1 ofs=$2 len=$3 val=$4
97 local str=$(printf "%0$((len * 2))x\n" $val | sed 's/\(..\)/\\x\1/g')
108 for byte in $(od -j"$2" -N"$3" -An -v -tu1 "$1"); do
121 for byte in $(od -j"$2" -N"$3" -An -v -tu1 "$1"); do
131 dd if="$1" bs=1 skip="$2" count="$3" status=none
136 if [ -n "$1" ]; then
137 echo "$1,$2"
146 du --block-size=1 "$1" | awk '{print $1}'
165 local VALGRIND_LOGFILE="$1"
176 local VALGRIND_LOGFILE="$1"
348 exit 1
357 exit 1
362 SAMPLE_IMG_FILE="${1%\.bz2}"
364 bzcat "$SAMPLE_IMG_DIR/$1" > "$TEST_IMG"
367 echo "_use_sample_img error, cannot extract '$SAMPLE_IMG_DIR/$1'"
368 exit 1
383 # pattern by '$1'
384 # Caution: The replacement is done with sed, so $1 must be escaped
389 return 1
392 echo "$IMGOPTS" | sed -e 's/.*data_file=\([^,]*\).*/\1/' \
393 | sed -e "s#\\\$TEST_IMG#$1#"
402 echo "$1"
406 echo "$1" | sed -e "s#$SOCK_DIR/fuse-#$TEST_DIR/#"
410 echo "$1" | sed -e "s#nfs://127.0.0.1##"
414 echo "$1" | \
419 return 1
467 if [ "$use_backing" = "1" -a -z "$backing_file" ]; then
478 use_backing=1
509 if [ $use_backing = 1 ]; then
510 …bject_options -f $IMGFMT $extra_img_options -b "$backing_file" "$img_name" "${misc_params[@]}" 2>&1
512 …$QEMU_IMG create $object_options -f $IMGFMT $extra_img_options "$img_name" "${misc_params[@]}" 2>&1
524 sleep 1 # FIXME: qemu-nbd needs to be listening before we continue
536 return 1
571 local img=$1
612 timeout=$((timeout - 1))
615 return 1
685 $QEMU_IMG check $QEMU_IMG_EXTRA_ARGS "$@" "$TEST_IMG" 2>&1
687 $QEMU_IMG check "$@" -f $IMGFMT "$TEST_IMG" 2>&1
711 if [[ "$1" == "--format-specific" ]]; then
712 local format_specific=1
721 $QEMU_IMG info $QEMU_IMG_EXTRA_ARGS "$@" "$TEST_IMG" 2>&1 | \
728 -e 's/\(compression type: \)\(zlib\|zstd\)/\1COMPRESSION_TYPE/' \
734 discard=1
736 discard=1
747 elif [[ $discard == 1 && ! $line ]]; then
771 status=1
772 exit 1
859 $QEMU_IMG create -f raw "$testfile" 1M > /dev/null
860 out=$($QEMU_IO -f raw -t none -c quit "$testfile" 2>&1)
882 # $1 - cache mode to use by default
888 CACHEMODE="$1"
908 AIOMODE="$1"
909 QEMU_IO="$QEMU_IO --aio $1"
936 1M \
937 2>&1
956 if [ "$1" = "QEMU" ]; then
958 elif [ "$1" = "QEMU_IMG" ]; then
960 elif [ "$1" = "QEMU_IO" ]; then
962 elif [ "$1" = "QEMU_NBD" ]; then
965 eval c=\$$1
967 [ -x "$c" ] || _notrun "$1 utility required, skipped this test"
993 if ! truncate --size="$1" "$FILENAME"; then
1013 exit 1
1058 if [[ "$1" == "--no-filter-compression" ]]; then
1062 local filter_compression=1
1065 img="$1"