diff options
author | Markus Armbruster <armbru@redhat.com> | 2011-05-16 15:04:57 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-05-19 10:26:23 +0200 |
commit | 8d278467ff698de351a136e71f352e611e728579 (patch) | |
tree | 156fa95e2f010f77cbb0e1a4f533fa0d97260a8b /blockdev.c | |
parent | 95b5edcd92d64c7b8fe9f2e3e0725fdf84be0dfa (diff) | |
download | qemu-8d278467ff698de351a136e71f352e611e728579.zip qemu-8d278467ff698de351a136e71f352e611e728579.tar.gz qemu-8d278467ff698de351a136e71f352e611e728579.tar.bz2 |
block: Remove type hint, it's guest matter, doesn't belong here
No users of bdrv_get_type_hint() left. bdrv_set_type_hint() can make
the media removable by side effect. Make that explicit.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'blockdev.c')
-rw-r--r-- | blockdev.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -487,7 +487,7 @@ DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi) } break; case MEDIA_CDROM: - bdrv_set_type_hint(dinfo->bdrv, BDRV_TYPE_CDROM); + bdrv_set_removable(dinfo->bdrv, 1); dinfo->media_cd = 1; break; } @@ -496,7 +496,7 @@ DriveInfo *drive_init(QemuOpts *opts, int default_to_scsi) /* FIXME: This isn't really a floppy, but it's a reasonable approximation. */ case IF_FLOPPY: - bdrv_set_type_hint(dinfo->bdrv, BDRV_TYPE_FLOPPY); + bdrv_set_removable(dinfo->bdrv, 1); break; case IF_PFLASH: case IF_MTD: |