blockdev: Put BlockInterfaceType names and max_devs in tables
authorMarkus Armbruster <armbru@redhat.com>
Fri, 28 Jan 2011 10:21:39 +0000 (11:21 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 31 Jan 2011 09:28:41 +0000 (10:28 +0100)
commit4eaa76258108624b8da147a69e76183b65643aa2
tree236b5ac2dabe47d9a3f75e35a343c7003addfb0e
parent72c761ed155f4418c5a4671ea2bf31c7c47e2505
blockdev: Put BlockInterfaceType names and max_devs in tables

Turns drive_init()'s lengthy conditional into a concise loop, and
makes the data available elsewhere.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c