block/raw-posix: Strip "file:" prefix on creation
commit464d9f641d5a2382bd43d10ae41355edf69338b1
authorMax Reitz <mreitz@redhat.com>
Wed, 5 Mar 2014 21:41:38 +0000 (5 22:41 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 6 Mar 2014 15:18:09 +0000 (6 16:18 +0100)
tree91f9e7e903224d840c129c149520924ba75ffb38
parent078896a9eeeaf7c301bbc59fc791c3331324285f
block/raw-posix: Strip "file:" prefix on creation

The bdrv_create() implementation of the block/raw-posix "file" protocol
driver should strip the "file:" prefix from filenames if present.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Benoit Canet <benoit@irqsave.net>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/raw-posix.c