]> git.proxmox.com Git - qemu.git/commit - block.c
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)
commitf3a5d3f8a1a992376e3dd128ceee917cd1281da7
tree52182d1855b05d0f16868bcd0a5a742ea3e9bfe6
parent90babde0cad8a485e5f74a2113c0425c08395a47
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