293.out (3943B)
1QA output created by 293 2== creating a test image == 3Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 4 5== test that key 0 opens the image == 6read 4096/4096 bytes at offset 0 74 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 8 9== adding a password to slot 4 == 10== adding a password to slot 1 == 11== adding a password to slot 3 == 12== adding a password to slot 2 == 13== erase slot 4 == 14 15== all secrets should work == 16read 4096/4096 bytes at offset 0 174 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 18read 4096/4096 bytes at offset 0 194 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 20read 4096/4096 bytes at offset 0 214 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 22read 4096/4096 bytes at offset 0 234 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 24 25== erase slot 0 and try it == 26qemu-io: can't open: Invalid password, cannot unlock any keyslot 27 28== erase slot 2 and try it == 29qemu-io: can't open: Invalid password, cannot unlock any keyslot 30 31== filling 4 slots with secret 2 == 32 33== adding secret 0 == 34 35== adding secret 3 (last slot) == 36 37== trying to add another slot (should fail) == 38qemu-img: Can't add a keyslot - all keyslots are in use 39 40== all secrets should work again == 41read 4096/4096 bytes at offset 0 424 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 43read 4096/4096 bytes at offset 0 444 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 45read 4096/4096 bytes at offset 0 464 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 47read 4096/4096 bytes at offset 0 484 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 49 50== erase all keys of secret 2== 51== erase all keys of secret 1== 52== erase all keys of secret 0== 53== erasing secret3 will fail now since it is the only secret (in 3 slots) == 54qemu-img: All the active keyslots match the (old) password that was given and erasing them will erase all the data in the image irreversibly - refusing operation 55 56== only secret3 should work now == 57qemu-io: can't open: Invalid password, cannot unlock any keyslot 58qemu-io: can't open: Invalid password, cannot unlock any keyslot 59qemu-io: can't open: Invalid password, cannot unlock any keyslot 60read 4096/4096 bytes at offset 0 614 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 62 63== add secret0 == 64== erase secret3 == 65 66== only secret0 should work now == 67read 4096/4096 bytes at offset 0 684 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 69qemu-io: can't open: Invalid password, cannot unlock any keyslot 70qemu-io: can't open: Invalid password, cannot unlock any keyslot 71qemu-io: can't open: Invalid password, cannot unlock any keyslot 72 73== replace secret0 with secret1 (should fail) == 74qemu-img: Refusing to overwrite active keyslot 0 - please erase it first 75 76== replace secret0 with secret1 with force (should work) == 77 78== only secret1 should work now == 79qemu-io: can't open: Invalid password, cannot unlock any keyslot 80read 4096/4096 bytes at offset 0 814 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 82qemu-io: can't open: Invalid password, cannot unlock any keyslot 83qemu-io: can't open: Invalid password, cannot unlock any keyslot 84 85== erase last secret (should fail) == 86qemu-img: Attempt to erase the only active keyslot 0 which will erase all the data in the image irreversibly - refusing operation 87qemu-img: All the active keyslots match the (old) password that was given and erasing them will erase all the data in the image irreversibly - refusing operation 88== erase non existing secrets (should fail) == 89qemu-img: No secret with id 'sec5' 90qemu-img: No keyslots match given (old) password for erase operation 91 92== erase last secret with force by slot (should work) == 93 94== we have no secrets now, data is lost forever == 95qemu-io: can't open: Invalid password, cannot unlock any keyslot 96qemu-io: can't open: Invalid password, cannot unlock any keyslot 97qemu-io: can't open: Invalid password, cannot unlock any keyslot 98qemu-io: can't open: Invalid password, cannot unlock any keyslot 99*** done