diff options
author | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-22 19:52:21 +0000 |
---|---|---|
committer | aliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-01-22 19:52:21 +0000 |
commit | ea8a5d7f1f49f9bd38f4f1b32f4d9c413e6cf0bd (patch) | |
tree | 5c0a3a618a8369f9a2db9f2376f11ab87af1731f /vl.c | |
parent | 7e739a58bb9ebf673a4449e15fcf8d3bdd23fe02 (diff) |
Stop VM on error in scsi-disk (Gleb Natapov)
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6409 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2432,8 +2432,8 @@ static int drive_init(struct drive_opt *arg, int snapshot, onerror = BLOCK_ERR_REPORT; if (get_param_value(buf, sizeof(serial), "werror", str)) { - if (type != IF_IDE) { - fprintf(stderr, "werror is supported only by IDE\n"); + if (type != IF_IDE && type != IF_SCSI) { + fprintf(stderr, "werror is no supported by this format\n"); return -1; } if (!strcmp(buf, "ignore")) |