293.out (3943B)
1 QA output created by 293 2 == creating a test image == 3 Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=33554432 4 5 == test that key 0 opens the image == 6 read 4096/4096 bytes at offset 0 7 4 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 == 16 read 4096/4096 bytes at offset 0 17 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 18 read 4096/4096 bytes at offset 0 19 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 20 read 4096/4096 bytes at offset 0 21 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 22 read 4096/4096 bytes at offset 0 23 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 24 25 == erase slot 0 and try it == 26 qemu-io: can't open: Invalid password, cannot unlock any keyslot 27 28 == erase slot 2 and try it == 29 qemu-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) == 38 qemu-img: Can't add a keyslot - all keyslots are in use 39 40 == all secrets should work again == 41 read 4096/4096 bytes at offset 0 42 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 43 read 4096/4096 bytes at offset 0 44 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 45 read 4096/4096 bytes at offset 0 46 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 47 read 4096/4096 bytes at offset 0 48 4 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) == 54 qemu-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 == 57 qemu-io: can't open: Invalid password, cannot unlock any keyslot 58 qemu-io: can't open: Invalid password, cannot unlock any keyslot 59 qemu-io: can't open: Invalid password, cannot unlock any keyslot 60 read 4096/4096 bytes at offset 0 61 4 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 == 67 read 4096/4096 bytes at offset 0 68 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 69 qemu-io: can't open: Invalid password, cannot unlock any keyslot 70 qemu-io: can't open: Invalid password, cannot unlock any keyslot 71 qemu-io: can't open: Invalid password, cannot unlock any keyslot 72 73 == replace secret0 with secret1 (should fail) == 74 qemu-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 == 79 qemu-io: can't open: Invalid password, cannot unlock any keyslot 80 read 4096/4096 bytes at offset 0 81 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) 82 qemu-io: can't open: Invalid password, cannot unlock any keyslot 83 qemu-io: can't open: Invalid password, cannot unlock any keyslot 84 85 == erase last secret (should fail) == 86 qemu-img: Attempt to erase the only active keyslot 0 which will erase all the data in the image irreversibly - refusing operation 87 qemu-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) == 89 qemu-img: No secret with id 'sec5' 90 qemu-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 == 95 qemu-io: can't open: Invalid password, cannot unlock any keyslot 96 qemu-io: can't open: Invalid password, cannot unlock any keyslot 97 qemu-io: can't open: Invalid password, cannot unlock any keyslot 98 qemu-io: can't open: Invalid password, cannot unlock any keyslot 99 *** done