]> git.proxmox.com Git - qemu.git/blobdiff - vl.c
ide: Implement rerror option
[qemu.git] / vl.c
diff --git a/vl.c b/vl.c
index 3d64fc65347a67ddbdf8671098e521ed51220a71..ec7741e1f2b74e08ac284abbda7a92fa838e8b40 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -2198,7 +2198,7 @@ DriveInfo *drive_init(QemuOpts *opts, void *opaque,
 
     on_read_error = BLOCK_ERR_REPORT;
     if ((buf = qemu_opt_get(opts, "rerror")) != NULL) {
-        if (1) {
+        if (type != IF_IDE) {
             fprintf(stderr, "rerror is no supported by this format\n");
             return NULL;
         }