blockdev: Remove 'type' parameter from blockdev_init()
commitee13ed1cbc5f7f848e417f587c93ca1f36d83eb0
authorKevin Wolf <kwolf@redhat.com>
Sun, 9 Feb 2014 08:52:32 +0000 (9 09:52 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 14 Feb 2014 12:04:56 +0000 (14 13:04 +0100)
tree9114c95040c0994cfd7f78ba2267cc7048a02718
parent1a838745b80ec6bcb3f78ce38aa1ccf1efc9f937
blockdev: Remove 'type' parameter from blockdev_init()

blockdev-add doesn't know about the device that the backend will be
attached to, this is a legacy -drive concept. Move the remaining checks
that use it to drive_init().

[Fam Zheng <famz@redhat.com> suggested line-wrapping to 80 chars as
required by the coding standard.  I have fixed this.
--Stefan]

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
blockdev.c