Revision 5dba48a8 blockdev.c
b/blockdev.c | ||
---|---|---|
314 | 314 |
on_write_error = BLOCK_ERR_STOP_ENOSPC; |
315 | 315 |
if ((buf = qemu_opt_get(opts, "werror")) != NULL) { |
316 | 316 |
if (type != IF_IDE && type != IF_SCSI && type != IF_VIRTIO && type != IF_NONE) { |
317 |
fprintf(stderr, "werror is no supported by this format\n"); |
|
317 |
fprintf(stderr, "werror is not supported by this format\n");
|
|
318 | 318 |
return NULL; |
319 | 319 |
} |
320 | 320 |
|
... | ... | |
326 | 326 |
|
327 | 327 |
on_read_error = BLOCK_ERR_REPORT; |
328 | 328 |
if ((buf = qemu_opt_get(opts, "rerror")) != NULL) { |
329 |
if (type != IF_IDE && type != IF_VIRTIO && type != IF_NONE) { |
|
330 |
fprintf(stderr, "rerror is no supported by this format\n"); |
|
329 |
if (type != IF_IDE && type != IF_VIRTIO && type != IF_SCSI && type != IF_NONE) {
|
|
330 |
fprintf(stderr, "rerror is not supported by this format\n");
|
|
331 | 331 |
return NULL; |
332 | 332 |
} |
333 | 333 |
|
Also available in: Unified diff