Lines Matching +full:64 +full:- +full:bit

34 # This tests qocw2-specific low-level functionality
47 rm -f "$RAND_FILE"
55 output=$(_make_test_img -o 'compression_type=zstd' 64M; _cleanup_test_img)
56 if echo "$output" | grep -q "Parameter 'compression-type' does not accept value 'zstd'"; then
61 echo "=== Testing compression type incompatible bit setting for zlib ==="
63 _make_test_img -o compression_type=zlib 64M
64 _qcow2_dump_header --no-filter-compression | grep incompatible_features
67 echo "=== Testing compression type incompatible bit setting for zstd ==="
69 _make_test_img -o compression_type=zstd 64M
70 _qcow2_dump_header --no-filter-compression | grep incompatible_features
73 echo "=== Testing zlib with incompatible bit set ==="
75 _make_test_img -o compression_type=zlib 64M
76 $PYTHON qcow2.py "$TEST_IMG" set-feature-bit incompatible 3
77 # to make sure the bit was actually set
78 _qcow2_dump_header --no-filter-compression | grep incompatible_features
85 echo "=== Testing zstd with incompatible bit unset ==="
87 _make_test_img -o compression_type=zstd 64M
88 $PYTHON qcow2.py "$TEST_IMG" set-header incompatible_features 0
89 # to make sure the bit was actually unset
90 _qcow2_dump_header --no-filter-compression | grep incompatible_features
100 _make_test_img -o compression_type=zlib 64M
105 _make_test_img -o compression_type=zstd 64M
112 _make_test_img -o compression_type=zstd 64M
113 $QEMU_IO -c "write -c -P 0xAC 64K 64K " "$TEST_IMG" | _filter_qemu_io
114 $QEMU_IO -c "read -P 0xAC 64K 64K " "$TEST_IMG" | _filter_qemu_io
116 $QEMU_IO -c "read -v 131070 8 " "$TEST_IMG" | _filter_qemu_io
117 $QEMU_IO -c "read -v 65534 8" "$TEST_IMG" | _filter_qemu_io
122 _make_test_img -o compression_type=zstd 64M
123 $QEMU_IO -c "write -c -P 0xAB 0 64K " "$TEST_IMG" | _filter_qemu_io
124 $QEMU_IO -c "write -c -P 0xAC 64K 64K " "$TEST_IMG" | _filter_qemu_io
125 $QEMU_IO -c "write -c -P 0xAD 128K 64K " "$TEST_IMG" | _filter_qemu_io
127 $QEMU_IO -c "read -P 0xAB 0 64k " "$TEST_IMG" | _filter_qemu_io
128 $QEMU_IO -c "read -P 0xAC 64K 64k " "$TEST_IMG" | _filter_qemu_io
129 $QEMU_IO -c "read -P 0xAD 128K 64k " "$TEST_IMG" | _filter_qemu_io
138 $QEMU_IO -f raw -c "write -P 0xFA 0 1M" "$RAND_FILE" | _filter_qemu_io
140 $QEMU_IMG convert -f raw -O $IMGFMT -c \
141 -o "$(_optstr_add "$IMGOPTS" "compression_type=zlib")" "$RAND_FILE" \
144 $QEMU_IMG convert -O $IMGFMT -c \
145 -o "$(_optstr_add "$IMGOPTS" "compression_type=zstd")" "$TEST_IMG" \
152 rm -f $seq.full