blockdev: Remove 'media' parameter from blockdev_init()
commite34ef046412431acf5b4e30762390b4048187bb8
authorKevin Wolf <kwolf@redhat.com>
Thu, 19 Sep 2013 12:24:10 +0000 (19 14:24 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 11 Oct 2013 14:50:02 +0000 (11 16:50 +0200)
tree351468bba2ad23ae063b7404298908f021359daf
parenta9b43397a9782d028f45b63fb4affee164f85948
blockdev: Remove 'media' parameter from blockdev_init()

The remaining users shouldn't be there with blockdev-add and are easy to
move to drive_init().

Bonus bug fix: As a side effect, CD-ROM drives can now use block drivers
on the read-only whitelist without explicitly specifying read-only=on,
even if a format is explicitly specified.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
blockdev.c