Skip to contentSkip to conversation

rbd: fix compile error

PATCH Applied Liu Yuan 3 participants 3 messages Mar 24, 2013 – Mar 25, 2013 Block layer

lore
Share & tools
lore

Liu Yuan

author
#0 lore raw

PATCH 1/1 rbd: fix compile error

From: Liu Yuan <[email protected]>

Commit 787e4a85 [block: Add options QDict to bdrv_file_open() prototypes] didn't update rbd.c accordingly.

Cc Kevin Wolf <[email protected]>
Cc Stefan Hajnoczi <[email protected]>
---
 block/rbd.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
block/rbd.c +2 -1
index 8cd10a7..1a8ea6d 100644
@@ -441,7 +441,8 @@ static int qemu_rbd_aio_flush_cb(void *opaque)
     return (s->qemu_aio_count > 0);
 }
 
-static int qemu_rbd_open(BlockDriverState *bs, const char *filename, int flags)
+static int qemu_rbd_open(BlockDriverState *bs, const char *filename,
+                         QDict *options, int flags)
 {
     BDRVRBDState *s = bs->opaque;
     char pool[RBD_MAX_POOL_NAME_SIZE];
Signature · 1 line
1.7.9.5
Reviewed-by on v1 1/1
#1 lore raw

Am 24.03.2013 08:41, schrieb Liu Yuan:

Quoted 17 lines

From: Liu Yuan <[email protected]>

Commit 787e4a85 [block: Add options QDict to bdrv_file_open() prototypes] didn't update rbd.c accordingly.

Cc Kevin Wolf <[email protected]>
Cc Stefan Hajnoczi <[email protected]>
---
 block/rbd.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
block/rbd.c +0 -0
index 8cd10a7..1a8ea6d 100644

block/rbd.c static int qemu_rbd_aio_flush_cb(void *opaque) · line 448

Quoted 9 lines
block/rbd.c +2 -1
@@ -441,7 +441,8 @@ static int qemu_rbd_aio_flush_cb(void *opaque)
     return (s->qemu_aio_count > 0);
 }
 
-static int qemu_rbd_open(BlockDriverState *bs, const char *filename, int flags)
+static int qemu_rbd_open(BlockDriverState *bs, const char *filename,
+                         QDict *options, int flags)
 {
     BDRVRBDState *s = bs->opaque;
     char pool[RBD_MAX_POOL_NAME_SIZE];
#2 lore raw
In reply to Liu Yuan
Quoted 11 lines · Liu Yuan

From: Liu Yuan <[email protected]>

Commit 787e4a85 [block: Add options QDict to bdrv_file_open() prototypes] didn't update rbd.c accordingly.

Cc Kevin Wolf <[email protected]>
Cc Stefan Hajnoczi <[email protected]>
---
 block/rbd.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Thanks, applied to my block tree:
https://github.com/stefanha/qemu/commits/block

Stefan