Lines Matching full:1
33 status=1 # failure is the default!
44 for i in $(seq 1 ${SNAPSHOTS})
49 for img in "${TEST_IMG}".{1,2,base}
55 trap "_cleanup; exit \$status" 0 1 2 3 15
66 # ${1}: unique identifier for the snapshot filename
71 'snapshot-file':'${TEST_DIR}/${1}-${snapshot_virt0}',
76 # ${1}: unique identifier for the snapshot filename
83 'snapshot-file': '${TEST_DIR}/${1}-${snapshot_virt0}' } },
86 'snapshot-file': '${TEST_DIR}/${1}-${snapshot_virt1}' } } ]
92 # ${1}: unique identifier for the snapshot filename
98 { 'driver': 'qcow2', 'node-name': 'snap_${1}', ${2}
101 'node-name': 'file_${1}' } } }"
105 # ${1}: unique identifier for the snapshot filename
108 base_image="${TEST_DIR}/$((${1}-1))-${snapshot_virt0}"
109 snapshot_file="${TEST_DIR}/${1}-${snapshot_virt0}"
113 # ${1}: unique identifier for the snapshot filename
116 snapshot_file="${TEST_DIR}/${1}-${snapshot_virt0}"
117 create_snapshot_image "$1"
118 do_blockdev_add "$1" "'backing': null, " "${snapshot_file}"
121 # ${1}: unique identifier for the snapshot filename
127 'overlay':'snap_${1}' } }"
133 TEST_IMG="$TEST_IMG.1" _make_test_img $size
141 _launch_qemu -drive file="${TEST_IMG}.1",if=virtio -drive file="${TEST_IMG}.2",if=virtio
156 create_single_snapshot 1
164 'arguments': { 'snapshot-file':'${TEST_DIR}/1-${snapshot_virt0}',
190 SNAPSHOTS=$((${SNAPSHOTS}+1))
194 SNAPSHOTS=$((${SNAPSHOTS}+1))
227 blockdev_snapshot $((${SNAPSHOTS}-1)) error
233 SNAPSHOTS=$((${SNAPSHOTS}+1))
244 SNAPSHOTS=$((${SNAPSHOTS}+1))
252 SNAPSHOTS=$((${SNAPSHOTS}+1))
254 do_blockdev_add ${SNAPSHOTS} "'backing': 'snap_$((${SNAPSHOTS}-1))', " \
259 'overlay':'snap_$((${SNAPSHOTS}-1))' }
266 blockdev_snapshot $((${SNAPSHOTS}+1)) error