Skip to content

Commit

Permalink
Merge remote-tracking branch 'stefanha/block' into staging
Browse files Browse the repository at this point in the history
# By Liu Yuan (1) and Stefan Weil (1)
# Via Stefan Hajnoczi
* stefanha/block:
  block: Add options QDict to bdrv_file_open() prototypes (fix MinGW build)
  rbd: fix compile error
  • Loading branch information
Anthony Liguori committed Mar 25, 2013
2 parents d2f38a0 + ea804ca commit 4b5805d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions block/raw-win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,8 @@ static void raw_parse_flags(int flags, int *access_flags, DWORD *overlapped)
}
}

static int raw_open(BlockDriverState *bs, const char *filename, int flags)
static int raw_open(BlockDriverState *bs, const char *filename,
QDict *options, int flags)
{
BDRVRawState *s = bs->opaque;
int access_flags;
Expand Down Expand Up @@ -494,7 +495,8 @@ static int hdev_probe_device(const char *filename)
return 0;
}

static int hdev_open(BlockDriverState *bs, const char *filename, int flags)
static int hdev_open(BlockDriverState *bs, const char *filename,
QDict *options, int flags)
{
BDRVRawState *s = bs->opaque;
int access_flags, create_flags;
Expand Down
3 changes: 2 additions & 1 deletion block/rbd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 4b5805d

Please sign in to comment.