aboutsummaryrefslogtreecommitdiff
path: root/block.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2011-09-06 18:58:47 +0200
committerKevin Wolf <kwolf@redhat.com>2011-09-12 15:17:20 +0200
commit025e849a50259447aad49a0b45f0133c6a0f5d16 (patch)
treef8d35912c6c0728d7cac71325eec762afb4a9dc7 /block.c
parentf107639a6ff0c8d02f6a2dfdfce3a9d9f1e2eb27 (diff)
downloadqemu-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.c')
-rw-r--r--block.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/block.c b/block.c
index 1e4be73..7225b15 100644
--- a/block.c
+++ b/block.c
@@ -3072,14 +3072,14 @@ void bdrv_eject(BlockDriverState *bs, int eject_flag)
* Lock or unlock the media (if it is locked, the user won't be able
* to eject it manually).
*/
-void bdrv_set_locked(BlockDriverState *bs, int locked)
+void bdrv_lock_medium(BlockDriverState *bs, bool locked)
{
BlockDriver *drv = bs->drv;
- trace_bdrv_set_locked(bs, locked);
+ trace_bdrv_lock_medium(bs, locked);
- if (drv && drv->bdrv_set_locked) {
- drv->bdrv_set_locked(bs, locked);
+ if (drv && drv->bdrv_lock_medium) {
+ drv->bdrv_lock_medium(bs, locked);
}
}