diff options
author | Markus Armbruster <armbru@redhat.com> | 2011-09-06 18:58:47 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-09-12 15:17:20 +0200 |
commit | 025e849a50259447aad49a0b45f0133c6a0f5d16 (patch) | |
tree | f8d35912c6c0728d7cac71325eec762afb4a9dc7 /block/raw.c | |
parent | f107639a6ff0c8d02f6a2dfdfce3a9d9f1e2eb27 (diff) | |
download | qemu-025e849a50259447aad49a0b45f0133c6a0f5d16.zip qemu-025e849a50259447aad49a0b45f0133c6a0f5d16.tar.gz qemu-025e849a50259447aad49a0b45f0133c6a0f5d16.tar.bz2 |
block: Rename bdrv_set_locked() to bdrv_lock_medium()
While there, make the locked parameter bool.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/raw.c')
-rw-r--r-- | block/raw.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/block/raw.c b/block/raw.c index f197479..63cf2d3 100644 --- a/block/raw.c +++ b/block/raw.c @@ -85,9 +85,9 @@ static void raw_eject(BlockDriverState *bs, int eject_flag) bdrv_eject(bs->file, eject_flag); } -static void raw_set_locked(BlockDriverState *bs, int locked) +static void raw_lock_medium(BlockDriverState *bs, bool locked) { - bdrv_set_locked(bs->file, locked); + bdrv_lock_medium(bs->file, locked); } static int raw_ioctl(BlockDriverState *bs, unsigned long int req, void *buf) @@ -144,7 +144,7 @@ static BlockDriver bdrv_raw = { .bdrv_is_inserted = raw_is_inserted, .bdrv_media_changed = raw_media_changed, .bdrv_eject = raw_eject, - .bdrv_set_locked = raw_set_locked, + .bdrv_lock_medium = raw_lock_medium, .bdrv_ioctl = raw_ioctl, .bdrv_aio_ioctl = raw_aio_ioctl, |