raw-posix: split hdev drivers
authorChristoph Hellwig <hch@lst.de>
Mon, 15 Jun 2009 11:55:19 +0000 (13:55 +0200)
committerChristoph Hellwig <hch@brick.lst.de>
Mon, 15 Jun 2009 11:55:19 +0000 (13:55 +0200)
commit795174f0ba7208e713ee5dbe4fcc50d99a5591c0
tree52182d1855b05d0f16868bcd0a5a742ea3e9bfe6
parentcd45c40e05a3cce359ae0c83be3b915dd3137bbe
raw-posix: split hdev drivers

Instead of declaring one BlockDriver for all host devices declared one
for each type:  a generic one for normal disk devices, a Linux floppy
driver and a CDROM driver for Linux and FreeBSD.  This gets rid of a lot
of messy ifdefs and switching based on the type in the various removal
device methods.

block.c grows a new method to find the correct host device driver based
on OS-sepcific criteria, which will later into the actual drivers in a
later patch in this series.

Signed-off-by: Christoph Hellwig <hch@lst.de>
block.c
block/raw-posix.c