write-threshold.c (0f183e679d85fec74fc83f35f973cf8e56d97861) write-threshold.c (e688df6bc4549f28534cdb001f168b8caae55b0c)
1/*
2 * QEMU System Emulator block write threshold notification
3 *
4 * Copyright Red Hat, Inc. 2014
5 *
6 * Authors:
7 * Francesco Romani <fromani@redhat.com>
8 *
9 * This work is licensed under the terms of the GNU LGPL, version 2 or later.
10 * See the COPYING.LIB file in the top-level directory.
11 */
12
13#include "qemu/osdep.h"
14#include "block/block_int.h"
15#include "qemu/coroutine.h"
16#include "block/write-threshold.h"
17#include "qemu/notify.h"
18#include "qapi-event.h"
1/*
2 * QEMU System Emulator block write threshold notification
3 *
4 * Copyright Red Hat, Inc. 2014
5 *
6 * Authors:
7 * Francesco Romani <fromani@redhat.com>
8 *
9 * This work is licensed under the terms of the GNU LGPL, version 2 or later.
10 * See the COPYING.LIB file in the top-level directory.
11 */
12
13#include "qemu/osdep.h"
14#include "block/block_int.h"
15#include "qemu/coroutine.h"
16#include "block/write-threshold.h"
17#include "qemu/notify.h"
18#include "qapi-event.h"
19#include "qapi/error.h"
19#include "qmp-commands.h"
20
20#include "qmp-commands.h"
21
21
22uint64_t bdrv_write_threshold_get(const BlockDriverState *bs)
23{
24 return bs->write_threshold_offset;
25}
26
27bool bdrv_write_threshold_is_set(const BlockDriverState *bs)
28{
29 return bs->write_threshold_offset > 0;

--- 96 unchanged lines hidden ---
22uint64_t bdrv_write_threshold_get(const BlockDriverState *bs)
23{
24 return bs->write_threshold_offset;
25}
26
27bool bdrv_write_threshold_is_set(const BlockDriverState *bs)
28{
29 return bs->write_threshold_offset > 0;

--- 96 unchanged lines hidden ---