block: add bdrv_probe_device method
authorChristoph Hellwig <hch@lst.de>
Mon, 15 Jun 2009 12:04:22 +0000 (14:04 +0200)
committerChristoph Hellwig <hch@brick.lst.de>
Mon, 15 Jun 2009 12:04:22 +0000 (14:04 +0200)
commit508c7cb3fa666f0c4723946869f318ec7751ecbd
treeaba6e675fcd8b94b7019e3eaa56e4cc06502b9c5
parentf3a5d3f8a1a992376e3dd128ceee917cd1281da7
block: add bdrv_probe_device method

Add a bdrv_probe_device method to all BlockDriver instances implementing
host devices to move matching of host device types into the actual drivers.
For now we keep exacly the old matching behaviour based on the devices names,
although we really should have better detetion methods based on device
information in the future.

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