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)
commit1960966d1b57628f730b66fe33cd2005846092e0
tree236b5ac2dabe47d9a3f75e35a343c7003addfb0e
parent904ebffee5a7e7d246039ad5826195fe51ccf769
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