qed: Refuse to create images on block devices
commitc743849bee7333c7ef256b7e12e34ed6f907064f
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Fri, 14 Jan 2011 22:44:33 +0000 (14 22:44 +0000)
committerKevin Wolf <kwolf@redhat.com>
Mon, 24 Jan 2011 15:41:50 +0000 (24 16:41 +0100)
tree1589e05d6532aac2679c9b84fd6adb97c767ef94
parente61846908efd5ea0916d157a82adabf0674a01b0
qed: Refuse to create images on block devices

QED relies on the underlying filesystem to extend the file and maintain
its size.  Check that images are not created on a block device.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qed.c