[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v5 08/38] block/raw_bsd: Drop raw_is_inserted()
From: |
Max Reitz |
Subject: |
[Qemu-devel] [PATCH v5 08/38] block/raw_bsd: Drop raw_is_inserted() |
Date: |
Fri, 18 Sep 2015 17:22:43 +0200 |
With the new automatically-recursive implementation of
bdrv_is_inserted() checking by default whether all the children of a BDS
are inserted, we can drop raw's own implementation.
Signed-off-by: Max Reitz <address@hidden>
---
block/raw_bsd.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/block/raw_bsd.c b/block/raw_bsd.c
index d718583..891a1fa 100644
--- a/block/raw_bsd.c
+++ b/block/raw_bsd.c
@@ -154,11 +154,6 @@ static int raw_truncate(BlockDriverState *bs, int64_t
offset)
return bdrv_truncate(bs->file, offset);
}
-static bool raw_is_inserted(BlockDriverState *bs)
-{
- return bdrv_is_inserted(bs->file);
-}
-
static int raw_media_changed(BlockDriverState *bs)
{
return bdrv_media_changed(bs->file);
@@ -264,7 +259,6 @@ BlockDriver bdrv_raw = {
.bdrv_refresh_limits = &raw_refresh_limits,
.bdrv_probe_blocksizes = &raw_probe_blocksizes,
.bdrv_probe_geometry = &raw_probe_geometry,
- .bdrv_is_inserted = &raw_is_inserted,
.bdrv_media_changed = &raw_media_changed,
.bdrv_eject = &raw_eject,
.bdrv_lock_medium = &raw_lock_medium,
--
2.5.2
- [Qemu-devel] [PATCH v5 02/38] block: Set BDRV_O_INCOMING in bdrv_fill_options(), (continued)
- [Qemu-devel] [PATCH v5 02/38] block: Set BDRV_O_INCOMING in bdrv_fill_options(), Max Reitz, 2015/09/18
- [Qemu-devel] [PATCH v5 05/38] block: Make bdrv_is_inserted() return a bool, Max Reitz, 2015/09/18
- [Qemu-devel] [PATCH v5 03/38] blockdev: Allow creation of BDS trees without BB, Max Reitz, 2015/09/18
- [Qemu-devel] [PATCH v5 06/38] block: Add blk_is_available(), Max Reitz, 2015/09/18
- [Qemu-devel] [PATCH v5 07/38] block: Make bdrv_is_inserted() recursive, Max Reitz, 2015/09/18
- [Qemu-devel] [PATCH v5 04/38] iotests: Only create BB if necessary, Max Reitz, 2015/09/18
- [Qemu-devel] [PATCH v5 08/38] block/raw_bsd: Drop raw_is_inserted(),
Max Reitz <=
- [Qemu-devel] [PATCH v5 10/38] hw/block/fdc: Implement tray status, Max Reitz, 2015/09/18
- [Qemu-devel] [PATCH v5 09/38] block: Invoke change media CB before NULLing drv, Max Reitz, 2015/09/18
- [Qemu-devel] [PATCH v5 11/38] hw/usb-storage: Check whether BB is inserted, Max Reitz, 2015/09/18
- [Qemu-devel] [PATCH v5 13/38] block: Move guest_block_size into BlockBackend, Max Reitz, 2015/09/18
- [Qemu-devel] [PATCH v5 12/38] block: Fix BB AIOCB AioContext without BDS, Max Reitz, 2015/09/18
- [Qemu-devel] [PATCH v5 14/38] block: Remove wr_highest_sector from BlockAcctStats, Max Reitz, 2015/09/18