/* Lock or unlock the media (if it is locked, the user won't be able to eject it manually).  */
void bdrv_lock_medium(BlockDriverState *bs, bool locked)
/* Lock or unlock the media (if it is locked, the user won't be able to eject it manually).  */
void bdrv_lock_medium(BlockDriverState *bs, bool locked)
{
    BlockDriver *drv = bs->drv;
    trace_bdrv_lock_medium(bs, locked);
    if (drv && drv->bdrv_lock_medium) {
        drv->bdrv_lock_medium(bs, locked);
    }
}