Stefan Hajnoczi | 32a1681 | 2017-07-05 13:57:38 +0100 | [diff] [blame] | 1 | QA output created by 178 |
| 2 | == Input validation == |
| 3 | |
| 4 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 |
| 5 | qemu-img: Either --size N or one filename must be specified. |
| 6 | qemu-img: --size N cannot be used together with a filename. |
| 7 | qemu-img: At most one filename argument is allowed. |
Stefan Hajnoczi | c3673dc | 2020-02-21 11:25:21 +0000 | [diff] [blame] | 8 | qemu-img: Either --size N or one filename must be specified. |
| 9 | qemu-img: --image-opts, -f, and -l require a filename argument. |
| 10 | qemu-img: --image-opts, -f, and -l require a filename argument. |
| 11 | qemu-img: --image-opts, -f, and -l require a filename argument. |
Stefan Hajnoczi | 32a1681 | 2017-07-05 13:57:38 +0100 | [diff] [blame] | 12 | qemu-img: Invalid option list: , |
| 13 | qemu-img: Invalid parameter 'snapshot.foo' |
| 14 | qemu-img: Failed in parsing snapshot param 'snapshot.foo' |
| 15 | qemu-img: --output must be used with human or json as argument. |
| 16 | qemu-img: Image size must be less than 8 EiB! |
| 17 | qemu-img: Unknown file format 'foo' |
| 18 | |
| 19 | == Size calculation for a new file (human) == |
| 20 | |
| 21 | required size: 0 |
| 22 | fully allocated size: 0 |
| 23 | required size: 2147483648 |
| 24 | fully allocated size: 2147483648 |
| 25 | required size: 68719476736 |
| 26 | fully allocated size: 68719476736 |
| 27 | required size: 274877906944 |
| 28 | fully allocated size: 274877906944 |
| 29 | required size: 1099511627776 |
| 30 | fully allocated size: 1099511627776 |
| 31 | required size: 2251799813685248 |
| 32 | fully allocated size: 2251799813685248 |
| 33 | required size: 8070450532247928832 |
| 34 | fully allocated size: 8070450532247928832 |
| 35 | |
| 36 | == Empty raw input image (human) == |
| 37 | |
| 38 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=0 |
| 39 | required size: 0 |
| 40 | fully allocated size: 0 |
| 41 | |
| 42 | converted image file size in bytes: 0 |
| 43 | |
| 44 | == raw input image with data (human) == |
| 45 | |
| 46 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 |
| 47 | required size: 1073741824 |
| 48 | fully allocated size: 1073741824 |
| 49 | wrote 512/512 bytes at offset 512 |
| 50 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 51 | wrote 65536/65536 bytes at offset 65536 |
| 52 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 53 | wrote 64512/64512 bytes at offset 134217728 |
| 54 | 63 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 55 | required size: 1073741824 |
| 56 | fully allocated size: 1073741824 |
| 57 | |
| 58 | converted image file size in bytes: 1073741824 |
| 59 | |
| 60 | == raw input image and preallocation (human) == |
| 61 | |
| 62 | required size: 1073741824 |
| 63 | fully allocated size: 1073741824 |
| 64 | |
| 65 | converted image file size in bytes: 1073741824 |
| 66 | |
| 67 | == Fully-allocated raw input image (human) == |
| 68 | |
| 69 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=8388608 |
| 70 | wrote 8388608/8388608 bytes at offset 0 |
| 71 | 8 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 72 | required size: 8388608 |
| 73 | fully allocated size: 8388608 |
| 74 | |
| 75 | converted image file size in bytes: 8388608 |
| 76 | |
| 77 | == Size calculation for a new file (json) == |
| 78 | |
| 79 | { |
| 80 | "required": 0, |
| 81 | "fully-allocated": 0 |
| 82 | } |
| 83 | { |
| 84 | "required": 2147483648, |
| 85 | "fully-allocated": 2147483648 |
| 86 | } |
| 87 | { |
| 88 | "required": 68719476736, |
| 89 | "fully-allocated": 68719476736 |
| 90 | } |
| 91 | { |
| 92 | "required": 274877906944, |
| 93 | "fully-allocated": 274877906944 |
| 94 | } |
| 95 | { |
| 96 | "required": 1099511627776, |
| 97 | "fully-allocated": 1099511627776 |
| 98 | } |
| 99 | { |
| 100 | "required": 2251799813685248, |
| 101 | "fully-allocated": 2251799813685248 |
| 102 | } |
| 103 | { |
| 104 | "required": 8070450532247928832, |
| 105 | "fully-allocated": 8070450532247928832 |
| 106 | } |
| 107 | |
| 108 | == Empty raw input image (json) == |
| 109 | |
| 110 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=0 |
| 111 | { |
| 112 | "required": 0, |
| 113 | "fully-allocated": 0 |
| 114 | } |
| 115 | |
| 116 | converted image file size in bytes: 0 |
| 117 | |
| 118 | == raw input image with data (json) == |
| 119 | |
| 120 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=1073741824 |
| 121 | { |
| 122 | "required": 1073741824, |
| 123 | "fully-allocated": 1073741824 |
| 124 | } |
| 125 | wrote 512/512 bytes at offset 512 |
| 126 | 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 127 | wrote 65536/65536 bytes at offset 65536 |
| 128 | 64 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 129 | wrote 64512/64512 bytes at offset 134217728 |
| 130 | 63 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 131 | { |
| 132 | "required": 1073741824, |
| 133 | "fully-allocated": 1073741824 |
| 134 | } |
| 135 | |
| 136 | converted image file size in bytes: 1073741824 |
| 137 | |
| 138 | == raw input image and preallocation (json) == |
| 139 | |
| 140 | { |
| 141 | "required": 1073741824, |
| 142 | "fully-allocated": 1073741824 |
| 143 | } |
| 144 | |
| 145 | converted image file size in bytes: 1073741824 |
| 146 | |
| 147 | == Fully-allocated raw input image (json) == |
| 148 | |
| 149 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=8388608 |
| 150 | wrote 8388608/8388608 bytes at offset 0 |
| 151 | 8 MiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 152 | { |
| 153 | "required": 8388608, |
| 154 | "fully-allocated": 8388608 |
| 155 | } |
| 156 | |
| 157 | converted image file size in bytes: 8388608 |
| 158 | *** done |