Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 1 | QA output created by 051 |
| 2 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 |
| 3 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 backing_file=TEST_DIR/t.IMGFMT.base |
| 4 | |
| 5 | === Unknown option === |
| 6 | |
Bo Tu | dd87de0 | 2016-01-04 13:29:20 +0800 | [diff] [blame] | 7 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0 |
Max Reitz | d0e46a5 | 2016-03-16 19:54:34 +0100 | [diff] [blame] | 8 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt' |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 9 | |
Bo Tu | dd87de0 | 2016-01-04 13:29:20 +0800 | [diff] [blame] | 10 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0 |
Max Reitz | d0e46a5 | 2016-03-16 19:54:34 +0100 | [diff] [blame] | 11 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=on,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt' |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 12 | |
Bo Tu | dd87de0 | 2016-01-04 13:29:20 +0800 | [diff] [blame] | 13 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0 |
Max Reitz | d0e46a5 | 2016-03-16 19:54:34 +0100 | [diff] [blame] | 14 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=1234,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt' |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 15 | |
Bo Tu | dd87de0 | 2016-01-04 13:29:20 +0800 | [diff] [blame] | 16 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0 |
Max Reitz | d0e46a5 | 2016-03-16 19:54:34 +0100 | [diff] [blame] | 17 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo,if=none,id=drive0: Block format 'qcow2' does not support the option 'unknown_opt' |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 18 | |
| 19 | |
| 20 | === Unknown protocol option === |
| 21 | |
| 22 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt= |
| 23 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=: Block protocol 'file' doesn't support the option 'unknown_opt' |
| 24 | |
| 25 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on |
| 26 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=on: Block protocol 'file' doesn't support the option 'unknown_opt' |
| 27 | |
| 28 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234 |
| 29 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=1234: Block protocol 'file' doesn't support the option 'unknown_opt' |
| 30 | |
| 31 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo |
| 32 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,file.unknown_opt=foo: Block protocol 'file' doesn't support the option 'unknown_opt' |
| 33 | |
| 34 | |
| 35 | === Invalid format === |
| 36 | |
| 37 | Testing: -drive file=TEST_DIR/t.qcow2,format=foo |
| 38 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=foo: Unknown driver 'foo' |
| 39 | |
| 40 | Testing: -drive file=TEST_DIR/t.qcow2,driver=foo |
| 41 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=foo: Unknown driver 'foo' |
| 42 | |
| 43 | Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2 |
| 44 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2: Cannot specify both 'driver' and 'format' |
| 45 | |
| 46 | Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2 |
| 47 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2: Cannot specify both 'driver' and 'format' |
| 48 | |
| 49 | |
| 50 | === Device without drive === |
| 51 | |
Cornelia Huck | 75f02ed | 2017-09-13 11:10:37 +0200 | [diff] [blame] | 52 | Testing: -device VIRTIO_SCSI -device scsi-hd |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 53 | QEMU X.Y.Z monitor - type 'help' for more information |
| 54 | (qemu) QEMU_PROG: -device scsi-hd: drive property not set |
| 55 | |
| 56 | |
| 57 | === Overriding backing file === |
| 58 | |
Bo Tu | dd87de0 | 2016-01-04 13:29:20 +0800 | [diff] [blame] | 59 | Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,backing.file.filename=TEST_DIR/t.qcow2.orig,if=none,id=drive0 -nodefaults |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 60 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 61 | (qemu) info block |
Bo Tu | dd87de0 | 2016-01-04 13:29:20 +0800 | [diff] [blame] | 62 | drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2) |
| 63 | Removable device: not locked, tray closed |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 64 | Cache mode: writeback |
| 65 | Backing file: TEST_DIR/t.qcow2.orig (chain depth: 1) |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 66 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 67 | |
| 68 | Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig |
| 69 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files |
| 70 | |
| 71 | Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig |
| 72 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.backing.driver=file,file.backing.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files |
| 73 | |
| 74 | Testing: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig |
| 75 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.backing.driver=qcow2,file.backing.file.filename=TEST_DIR/t.qcow2.orig: Driver doesn't support backing files |
| 76 | |
| 77 | |
| 78 | === Enable and disable lazy refcounting on the command line, plus some invalid values === |
| 79 | |
Max Reitz | 7e0db6f | 2017-11-23 03:08:26 +0100 | [diff] [blame] | 80 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 81 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on |
| 82 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 83 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 84 | |
| 85 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off |
| 86 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 87 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 88 | |
| 89 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts= |
| 90 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=: Parameter 'lazy-refcounts' expects 'on' or 'off' |
| 91 | |
| 92 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42 |
| 93 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=42: Parameter 'lazy-refcounts' expects 'on' or 'off' |
| 94 | |
| 95 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo |
| 96 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=foo: Parameter 'lazy-refcounts' expects 'on' or 'off' |
| 97 | |
| 98 | |
| 99 | === With version 2 images enabling lazy refcounts must fail === |
| 100 | |
| 101 | Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=134217728 |
| 102 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on |
| 103 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=on: Lazy refcounts require a qcow2 image with at least qemu 1.1 compatibility level |
| 104 | |
| 105 | Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy-refcounts=off |
| 106 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 107 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 108 | |
| 109 | |
| 110 | === No medium === |
| 111 | |
| 112 | Testing: -drive if=floppy |
| 113 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 114 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 115 | |
| 116 | Testing: -drive if=ide,media=cdrom |
| 117 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 118 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 119 | |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 120 | Testing: -drive if=ide |
| 121 | QEMU X.Y.Z monitor - type 'help' for more information |
Mao Zhongyi | 794939e | 2017-09-18 22:05:13 +0800 | [diff] [blame] | 122 | (qemu) QEMU_PROG: Initialization of device ide-hd failed: Device needs media, but drive is empty |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 123 | |
Bo Tu | dd87de0 | 2016-01-04 13:29:20 +0800 | [diff] [blame] | 124 | Testing: -drive if=virtio |
| 125 | QEMU X.Y.Z monitor - type 'help' for more information |
| 126 | (qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty |
| 127 | |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 128 | Testing: -drive if=none,id=disk -device ide-cd,drive=disk |
| 129 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 130 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 131 | |
| 132 | Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk |
| 133 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 134 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 135 | |
| 136 | Testing: -drive if=none,id=disk -device ide-drive,drive=disk |
| 137 | QEMU X.Y.Z monitor - type 'help' for more information |
| 138 | (qemu) QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 139 | |
| 140 | Testing: -drive if=none,id=disk -device ide-hd,drive=disk |
| 141 | QEMU X.Y.Z monitor - type 'help' for more information |
| 142 | (qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 143 | |
| 144 | Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk |
| 145 | QEMU X.Y.Z monitor - type 'help' for more information |
| 146 | (qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty |
| 147 | |
| 148 | Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk |
| 149 | QEMU X.Y.Z monitor - type 'help' for more information |
| 150 | (qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty |
| 151 | |
| 152 | |
| 153 | === Read-only === |
| 154 | |
| 155 | Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on |
| 156 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 157 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 158 | |
| 159 | Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on |
| 160 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 161 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 162 | |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 163 | Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on |
| 164 | QEMU X.Y.Z monitor - type 'help' for more information |
Mao Zhongyi | 794939e | 2017-09-18 22:05:13 +0800 | [diff] [blame] | 165 | (qemu) QEMU_PROG: Initialization of device ide-hd failed: Block node is read-only |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 166 | |
Bo Tu | dd87de0 | 2016-01-04 13:29:20 +0800 | [diff] [blame] | 167 | Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 168 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 169 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 170 | |
| 171 | Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk |
| 172 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 173 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 174 | |
| 175 | Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk |
| 176 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 177 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 178 | |
| 179 | Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk |
| 180 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | a17c17a | 2017-01-24 13:43:31 +0100 | [diff] [blame] | 181 | (qemu) QEMU_PROG: -device ide-drive,drive=disk: Block node is read-only |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 182 | |
| 183 | Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk |
| 184 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | a17c17a | 2017-01-24 13:43:31 +0100 | [diff] [blame] | 185 | (qemu) QEMU_PROG: -device ide-hd,drive=disk: Block node is read-only |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 186 | |
| 187 | Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk |
| 188 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 189 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 190 | |
| 191 | Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk |
| 192 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 193 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 194 | |
| 195 | |
| 196 | === Cache modes === |
| 197 | |
| 198 | Testing: -drive driver=null-co,cache=none |
| 199 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 200 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 201 | |
| 202 | Testing: -drive driver=null-co,cache=directsync |
| 203 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 204 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 205 | |
| 206 | Testing: -drive driver=null-co,cache=writeback |
| 207 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 208 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 209 | |
| 210 | Testing: -drive driver=null-co,cache=writethrough |
| 211 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 212 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 213 | |
| 214 | Testing: -drive driver=null-co,cache=unsafe |
| 215 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 216 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 217 | |
| 218 | Testing: -drive driver=null-co,cache=invalid_value |
| 219 | QEMU_PROG: -drive driver=null-co,cache=invalid_value: invalid cache option |
| 220 | |
Kevin Wolf | 61de4c6 | 2016-03-18 17:46:45 +0100 | [diff] [blame] | 221 | Testing: -drive file=TEST_DIR/t.qcow2,cache=writeback,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 222 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 223 | (qemu) info block |
Bo Tu | dd87de0 | 2016-01-04 13:29:20 +0800 | [diff] [blame] | 224 | drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2) |
| 225 | Removable device: not locked, tray closed |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 226 | Cache mode: writeback |
| 227 | Backing file: TEST_DIR/t.qcow2.base (chain depth: 1) |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 228 | (qemu) info block file |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 229 | |
| 230 | file: TEST_DIR/t.qcow2 (file) |
| 231 | Cache mode: writeback |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 232 | (qemu) info block backing |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 233 | backing: TEST_DIR/t.qcow2.base (qcow2, read-only) |
| 234 | Cache mode: writeback, ignore flushes |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 235 | (qemu) info block backing-file |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 236 | |
| 237 | backing-file: TEST_DIR/t.qcow2.base (file, read-only) |
| 238 | Cache mode: writeback, ignore flushes |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 239 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 240 | |
Kevin Wolf | 61de4c6 | 2016-03-18 17:46:45 +0100 | [diff] [blame] | 241 | Testing: -drive file=TEST_DIR/t.qcow2,cache=writethrough,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 242 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 243 | (qemu) info block |
Bo Tu | dd87de0 | 2016-01-04 13:29:20 +0800 | [diff] [blame] | 244 | drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2) |
| 245 | Removable device: not locked, tray closed |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 246 | Cache mode: writethrough |
| 247 | Backing file: TEST_DIR/t.qcow2.base (chain depth: 1) |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 248 | (qemu) info block file |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 249 | |
| 250 | file: TEST_DIR/t.qcow2 (file) |
| 251 | Cache mode: writeback |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 252 | (qemu) info block backing |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 253 | backing: TEST_DIR/t.qcow2.base (qcow2, read-only) |
| 254 | Cache mode: writeback, ignore flushes |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 255 | (qemu) info block backing-file |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 256 | |
| 257 | backing-file: TEST_DIR/t.qcow2.base (file, read-only) |
| 258 | Cache mode: writeback, ignore flushes |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 259 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 260 | |
Kevin Wolf | 61de4c6 | 2016-03-18 17:46:45 +0100 | [diff] [blame] | 261 | Testing: -drive file=TEST_DIR/t.qcow2,cache=unsafe,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 262 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 263 | (qemu) info block |
Bo Tu | dd87de0 | 2016-01-04 13:29:20 +0800 | [diff] [blame] | 264 | drive0 (NODE_NAME): TEST_DIR/t.qcow2 (qcow2) |
| 265 | Removable device: not locked, tray closed |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 266 | Cache mode: writeback, ignore flushes |
| 267 | Backing file: TEST_DIR/t.qcow2.base (chain depth: 1) |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 268 | (qemu) info block file |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 269 | |
| 270 | file: TEST_DIR/t.qcow2 (file) |
| 271 | Cache mode: writeback, ignore flushes |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 272 | (qemu) info block backing |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 273 | backing: TEST_DIR/t.qcow2.base (qcow2, read-only) |
| 274 | Cache mode: writeback, ignore flushes |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 275 | (qemu) info block backing-file |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 276 | |
| 277 | backing-file: TEST_DIR/t.qcow2.base (file, read-only) |
| 278 | Cache mode: writeback, ignore flushes |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 279 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 280 | |
Kevin Wolf | 61de4c6 | 2016-03-18 17:46:45 +0100 | [diff] [blame] | 281 | Testing: -drive file=TEST_DIR/t.qcow2,cache=invalid_value,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0 -nodefaults |
| 282 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,cache=invalid_value,backing.file.filename=TEST_DIR/t.qcow2.base,backing.cache.no-flush=on,backing.node-name=backing,backing.file.node-name=backing-file,file.node-name=file,if=none,id=drive0: invalid cache option |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 283 | |
| 284 | |
| 285 | === Specifying the protocol layer === |
| 286 | |
| 287 | Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file |
| 288 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 289 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 290 | |
| 291 | |
| 292 | === Leaving out required options === |
| 293 | |
| 294 | Testing: -drive driver=file |
| 295 | QEMU_PROG: -drive driver=file: The 'file' block driver requires a file name |
| 296 | |
Max Reitz | 42dc10f | 2017-04-13 18:06:25 +0200 | [diff] [blame] | 297 | Testing: -drive driver=file,filename= |
| 298 | QEMU_PROG: -drive driver=file,filename=: The 'file' block driver requires a file name |
| 299 | |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 300 | Testing: -drive driver=nbd |
Max Reitz | 491d6c7 | 2016-10-25 15:11:34 +0200 | [diff] [blame] | 301 | QEMU_PROG: -drive driver=nbd: NBD server address missing |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 302 | |
| 303 | Testing: -drive driver=raw |
Kevin Wolf | 4e4bf5c | 2016-12-16 18:52:37 +0100 | [diff] [blame] | 304 | QEMU_PROG: -drive driver=raw: A block device must be specified for "file" |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 305 | |
| 306 | Testing: -drive file.driver=file |
| 307 | QEMU_PROG: -drive file.driver=file: The 'file' block driver requires a file name |
| 308 | |
| 309 | Testing: -drive file.driver=nbd |
Max Reitz | 491d6c7 | 2016-10-25 15:11:34 +0200 | [diff] [blame] | 310 | QEMU_PROG: -drive file.driver=nbd: NBD server address missing |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 311 | |
| 312 | Testing: -drive file.driver=raw |
Kevin Wolf | 4e4bf5c | 2016-12-16 18:52:37 +0100 | [diff] [blame] | 313 | QEMU_PROG: -drive file.driver=raw: A block device must be specified for "file" |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 314 | |
| 315 | Testing: -drive foo=bar |
| 316 | QEMU_PROG: -drive foo=bar: Must specify either driver or file |
| 317 | |
| 318 | |
| 319 | === Specifying both an option and its legacy alias === |
| 320 | |
| 321 | Testing: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678 |
| 322 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=1234,throttling.iops-total=5678: 'throttling.iops-total' and its alias 'iops' can't be used at the same time |
| 323 | |
| 324 | Testing: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678 |
| 325 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_rd=1234,throttling.iops-read=5678: 'throttling.iops-read' and its alias 'iops_rd' can't be used at the same time |
| 326 | |
| 327 | Testing: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678 |
| 328 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_wr=1234,throttling.iops-write=5678: 'throttling.iops-write' and its alias 'iops_wr' can't be used at the same time |
| 329 | |
| 330 | Testing: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678 |
| 331 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1234,throttling.bps-total=5678: 'throttling.bps-total' and its alias 'bps' can't be used at the same time |
| 332 | |
| 333 | Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678 |
| 334 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=1234,throttling.bps-read=5678: 'throttling.bps-read' and its alias 'bps_rd' can't be used at the same time |
| 335 | |
| 336 | Testing: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678 |
| 337 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_wr=1234,throttling.bps-write=5678: 'throttling.bps-write' and its alias 'bps_wr' can't be used at the same time |
| 338 | |
| 339 | Testing: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678 |
| 340 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_max=1234,throttling.iops-total-max=5678: 'throttling.iops-total-max' and its alias 'iops_max' can't be used at the same time |
| 341 | |
| 342 | Testing: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678 |
| 343 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_rd_max=1234,throttling.iops-read-max=5678: 'throttling.iops-read-max' and its alias 'iops_rd_max' can't be used at the same time |
| 344 | |
| 345 | Testing: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678 |
| 346 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_wr_max=1234,throttling.iops-write-max=5678: 'throttling.iops-write-max' and its alias 'iops_wr_max' can't be used at the same time |
| 347 | |
| 348 | Testing: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678 |
| 349 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_max=1234,throttling.bps-total-max=5678: 'throttling.bps-total-max' and its alias 'bps_max' can't be used at the same time |
| 350 | |
| 351 | Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678 |
| 352 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=1234,throttling.bps-read-max=5678: 'throttling.bps-read-max' and its alias 'bps_rd_max' can't be used at the same time |
| 353 | |
| 354 | Testing: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678 |
| 355 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_wr_max=1234,throttling.bps-write-max=5678: 'throttling.bps-write-max' and its alias 'bps_wr_max' can't be used at the same time |
| 356 | |
| 357 | Testing: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678 |
| 358 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops_size=1234,throttling.iops-size=5678: 'throttling.iops-size' and its alias 'iops_size' can't be used at the same time |
| 359 | |
| 360 | Testing: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off |
| 361 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,readonly=on,read-only=off: 'read-only' and its alias 'readonly' can't be used at the same time |
| 362 | |
| 363 | |
Fam Zheng | e9b1555 | 2016-01-20 12:21:21 +0800 | [diff] [blame] | 364 | === Catching negative/large throttling values === |
| 365 | |
| 366 | Testing: -drive file=TEST_DIR/t.qcow2,iops=-1 |
| 367 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,iops=-1: bps/iops/max values must be within [0, 1000000000000000] |
| 368 | |
| 369 | Testing: -drive file=TEST_DIR/t.qcow2,bps=-2 |
| 370 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=-2: bps/iops/max values must be within [0, 1000000000000000] |
| 371 | |
| 372 | Testing: -drive file=TEST_DIR/t.qcow2,bps_rd=-3 |
| 373 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd=-3: bps/iops/max values must be within [0, 1000000000000000] |
| 374 | |
| 375 | Testing: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3 |
| 376 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps_rd_max=-3: bps/iops/max values must be within [0, 1000000000000000] |
| 377 | |
| 378 | Testing: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4 |
| 379 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.iops-total=-4: bps/iops/max values must be within [0, 1000000000000000] |
| 380 | |
| 381 | Testing: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5 |
| 382 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,throttling.bps-total=-5: bps/iops/max values must be within [0, 1000000000000000] |
| 383 | |
| 384 | Testing: -drive file=TEST_DIR/t.qcow2,bps=0 |
| 385 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 386 | (qemu) quit |
Fam Zheng | e9b1555 | 2016-01-20 12:21:21 +0800 | [diff] [blame] | 387 | |
| 388 | Testing: -drive file=TEST_DIR/t.qcow2,bps=1 |
| 389 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 390 | (qemu) quit |
Fam Zheng | e9b1555 | 2016-01-20 12:21:21 +0800 | [diff] [blame] | 391 | |
| 392 | Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000000 |
| 393 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 394 | (qemu) quit |
Fam Zheng | e9b1555 | 2016-01-20 12:21:21 +0800 | [diff] [blame] | 395 | |
| 396 | Testing: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001 |
| 397 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=1000000000000001: bps/iops/max values must be within [0, 1000000000000000] |
| 398 | |
| 399 | Testing: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999 |
| 400 | QEMU_PROG: -drive file=TEST_DIR/t.qcow2,bps=9999999999999999: bps/iops/max values must be within [0, 1000000000000000] |
| 401 | |
| 402 | |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 403 | === Parsing protocol from file name === |
| 404 | |
| 405 | Testing: -hda foo:bar |
| 406 | QEMU_PROG: -hda foo:bar: Unknown protocol 'foo' |
| 407 | |
| 408 | Testing: -drive file=foo:bar |
| 409 | QEMU_PROG: -drive file=foo:bar: Unknown protocol 'foo' |
| 410 | |
| 411 | Testing: -drive file.filename=foo:bar |
| 412 | QEMU_PROG: -drive file.filename=foo:bar: Could not open 'foo:bar': No such file or directory |
| 413 | |
| 414 | Testing: -hda file:TEST_DIR/t.qcow2 |
| 415 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 416 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 417 | |
| 418 | Testing: -drive file=file:TEST_DIR/t.qcow2 |
| 419 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 420 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 421 | |
| 422 | Testing: -drive file.filename=file:TEST_DIR/t.qcow2 |
| 423 | QEMU_PROG: -drive file.filename=file:TEST_DIR/t.qcow2: Could not open 'file:TEST_DIR/t.qcow2': No such file or directory |
| 424 | |
| 425 | |
| 426 | === Snapshot mode === |
| 427 | |
| 428 | wrote 4096/4096 bytes at offset 0 |
| 429 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 430 | Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot |
| 431 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 432 | (qemu) qemu-io drive0 "write -P 0x22 0 4k" |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 433 | wrote 4096/4096 bytes at offset 0 |
| 434 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 435 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 436 | |
| 437 | Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0 |
| 438 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 439 | (qemu) qemu-io drive0 "write -P 0x22 0 4k" |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 440 | wrote 4096/4096 bytes at offset 0 |
| 441 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 442 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 443 | |
| 444 | Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,snapshot=on,if=none,id=drive0 |
| 445 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 446 | (qemu) qemu-io drive0 "write -P 0x22 0 4k" |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 447 | wrote 4096/4096 bytes at offset 0 |
| 448 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 449 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 450 | |
| 451 | Testing: -drive file.filename=TEST_DIR/t.qcow2,driver=qcow2,if=none,id=drive0 -snapshot |
| 452 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 453 | (qemu) qemu-io drive0 "write -P 0x22 0 4k" |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 454 | wrote 4096/4096 bytes at offset 0 |
| 455 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 456 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 457 | |
| 458 | Testing: -drive file=file:TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot |
| 459 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 460 | (qemu) qemu-io drive0 "write -P 0x22 0 4k" |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 461 | wrote 4096/4096 bytes at offset 0 |
| 462 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 463 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 464 | |
| 465 | Testing: -drive file=file:TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0 |
| 466 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 467 | (qemu) qemu-io drive0 "write -P 0x22 0 4k" |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 468 | wrote 4096/4096 bytes at offset 0 |
| 469 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 470 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 471 | |
| 472 | Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=drive0 -snapshot |
| 473 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 474 | (qemu) qemu-io drive0 "write -P 0x22 0 4k" |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 475 | wrote 4096/4096 bytes at offset 0 |
| 476 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 477 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 478 | |
| 479 | Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0 |
| 480 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 481 | (qemu) qemu-io drive0 "write -P 0x22 0 4k" |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 482 | wrote 4096/4096 bytes at offset 0 |
| 483 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 484 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 485 | |
| 486 | read 4096/4096 bytes at offset 0 |
| 487 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 488 | Testing: -drive file=TEST_DIR/t.qcow2,snapshot=off,if=none,id=drive0 |
| 489 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 490 | (qemu) qemu-io drive0 "write -P 0x22 0 4k" |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 491 | wrote 4096/4096 bytes at offset 0 |
| 492 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 493 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 494 | |
| 495 | read 4096/4096 bytes at offset 0 |
| 496 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 497 | Testing: -drive file=TEST_DIR/t.qcow2,snapshot=on,if=none,id=drive0 |
| 498 | QEMU X.Y.Z monitor - type 'help' for more information |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 499 | (qemu) qemu-io drive0 "write -P 0x33 0 4k" |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 500 | wrote 4096/4096 bytes at offset 0 |
| 501 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
Kevin Wolf | 69404d9 | 2017-04-13 19:19:51 +0200 | [diff] [blame] | 502 | (qemu) commit drive0 |
| 503 | (qemu) quit |
Bo Tu | 289f3eb | 2015-12-03 18:01:30 +0800 | [diff] [blame] | 504 | |
| 505 | read 4096/4096 bytes at offset 0 |
| 506 | 4 KiB, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) |
| 507 | *** done |