block.c (74d33d5ce4d70125fa7ff476145276a44372e9d5) block.c (0f15423c3234335ca0dbeeae6d19db4699faca07)
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

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

2834 * mode.
2835 *
2836 * Let's hope the user knows what he's doing.
2837 */
2838 return 0;
2839 }
2840}
2841
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

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

2834 * mode.
2835 *
2836 * Let's hope the user knows what he's doing.
2837 */
2838 return 0;
2839 }
2840}
2841
2842void bdrv_invalidate_cache(BlockDriverState *bs)
2843{
2844 if (bs->drv && bs->drv->bdrv_invalidate_cache) {
2845 bs->drv->bdrv_invalidate_cache(bs);
2846 }
2847}
2848
2849void bdrv_invalidate_cache_all(void)
2850{
2851 BlockDriverState *bs;
2852
2853 QTAILQ_FOREACH(bs, &bdrv_states, list) {
2854 bdrv_invalidate_cache(bs);
2855 }
2856}
2857
2842int bdrv_flush(BlockDriverState *bs)
2843{
2844 Coroutine *co;
2845 RwCo rwco = {
2846 .bs = bs,
2847 .ret = NOT_DONE,
2848 };
2849

--- 425 unchanged lines hidden ---
2858int bdrv_flush(BlockDriverState *bs)
2859{
2860 Coroutine *co;
2861 RwCo rwco = {
2862 .bs = bs,
2863 .ret = NOT_DONE,
2864 };
2865

--- 425 unchanged lines hidden ---