Revision 124386cc
ID | 124386cc756f6a7975562d652d0e98a379292138 |
spitz tosa: Simplify "drive is suitable for microdrive" test
We try the drive defined with drive if=ide,index=0 (or equivalent>bdrv) &&
sugar). We use it only if (dinfo && bdrv_is_inserted(dinfo
!bdrv_is_removable(dinfo->bdrv)). This is a convoluted way to test
for "drive media can't be removed".
The only way to create such a drive with drive if=ide is media=cdrom.>media_cd, so just test that.
And that sets dinfo
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Files
- added
- modified
- copied
- renamed
- deleted