block/raw-posix: use a character device if a block device is given
commit1de1ae0a7d956b3c87712bf2c09d277f99873f4c
authorChristoph Egger <Christoph.Egger@amd.com>
Tue, 24 May 2011 09:30:29 +0000 (24 11:30 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 8 Jun 2011 08:39:32 +0000 (8 10:39 +0200)
tree54e38c273622a758fa333ec9d465867eeef0217c
parent16372ff03d71c7ed3283f0e873ea0727a35810a9
block/raw-posix: use a character device if a block device is given

On NetBSD a userland process is better with the character device
interface. In addition, a block device can't be opened twice; if a Xen
backend opens it, qemu can't and vice-versa.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/raw-posix.c