search for: bdrv_invalid_protocol

Displaying 1 result from an estimated 1 matches for "bdrv_invalid_protocol".

2008 Sep 10
2
Bug#490409: xen-3: diff for NMU version 3.2.1-2.1
...f6ca61b84c8bdf5ae3e961268c920f5 +xen-unstable date: Thu May 15 15:10:05 2008 +0100 + +--- a/tools/ioemu/block.c Thu May 15 09:59:19 2008 +0100 ++++ b/tools/ioemu/block.c Thu May 15 15:11:29 2008 +0100 +@@ -236,8 +236,28 @@ static int is_windows_drive(const char * + } + #endif + ++static int bdrv_invalid_protocol_open(BlockDriverState *bs, ++ const char *filename, int flags) { ++ return -ENOENT; ++} ++ ++static BlockDriver bdrv_invalid_protocol = { ++ "invalid_protocol", ++ .bdrv_open = bdrv_invalid_protocol_open, ++}; ++ + static BlockDriver *find_protocol(const char *filename)...