Lines Matching full:pattern
290 def qemu_io_write_pattern(config, pattern, offset_mb, size_mb, dev=False): argument
291 """Write a pattern of data to a LUKS image or device"""
295 args = ["-c", "write -P 0x%x %dM %dM" % (pattern, offset_mb, size_mb)]
303 def qemu_io_read_pattern(config, pattern, offset_mb, size_mb, dev=False): argument
304 """Read a pattern of data to a LUKS image or device"""
308 args = ["-c", "read -P 0x%x %dM %dM" % (pattern, offset_mb, size_mb)]
353 # known pattern of data that we'll then verify with QEMU
359 iotests.log("# Write test pattern 0xa7")
361 iotests.log("# Write test pattern 0x13")
367 # Ok, now we're using QEMU to verify the pattern just
370 iotests.log("# Read test pattern 0xa7")
372 iotests.log("# Read test pattern 0x13")
376 # Write a new pattern to the image, which we'll later
378 iotests.log("# Write test pattern 0x91")
380 iotests.log("# Write test pattern 0x5e")
390 iotests.log("# Read test pattern 0x91")
392 iotests.log("# Read test pattern 0x5e")