block.c (d22b2f41c470067758b3636a01b452dfeda7069f) block.c (b8c6d0958943c96ca9401961a1200568c7ec0268)
1/*
2 * QEMU System Emulator block driver
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 2803 unchanged lines hidden (view full) ---

2812/**
2813 * Lock or unlock the media (if it is locked, the user won't be able
2814 * to eject it manually).
2815 */
2816void bdrv_set_locked(BlockDriverState *bs, int locked)
2817{
2818 BlockDriver *drv = bs->drv;
2819
1/*
2 * QEMU System Emulator block driver
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights

--- 2803 unchanged lines hidden (view full) ---

2812/**
2813 * Lock or unlock the media (if it is locked, the user won't be able
2814 * to eject it manually).
2815 */
2816void bdrv_set_locked(BlockDriverState *bs, int locked)
2817{
2818 BlockDriver *drv = bs->drv;
2819
2820 trace_bdrv_set_locked(bs, locked);
2821
2820 bs->locked = locked;
2821 if (drv && drv->bdrv_set_locked) {
2822 drv->bdrv_set_locked(bs, locked);
2823 }
2824}
2825
2826/* needed for generic scsi interface */
2827

--- 224 unchanged lines hidden ---
2822 bs->locked = locked;
2823 if (drv && drv->bdrv_set_locked) {
2824 drv->bdrv_set_locked(bs, locked);
2825 }
2826}
2827
2828/* needed for generic scsi interface */
2829

--- 224 unchanged lines hidden ---