Revision 620f862e hw/scsi-disk.c
b/hw/scsi-disk.c | ||
---|---|---|
1059 | 1059 |
s->bs = s->qdev.conf.bs; |
1060 | 1060 |
is_cd = bdrv_get_type_hint(s->bs) == BDRV_TYPE_CDROM; |
1061 | 1061 |
|
1062 |
if (bdrv_get_on_error(s->bs, 1) != BLOCK_ERR_REPORT) { |
|
1063 |
error_report("Device doesn't support drive option rerror"); |
|
1064 |
return -1; |
|
1065 |
} |
|
1066 |
|
|
1062 | 1067 |
if (!s->serial) { |
1063 | 1068 |
/* try to fall back to value set with legacy -drive serial=... */ |
1064 | 1069 |
dinfo = drive_get_by_blockdev(s->bs); |
Also available in: Unified diff