qapi.c (e50bf23438f8f35dcf32f9e720b04e0e969a3215) qapi.c (465bee1da82e43f18d10c43cc7566d0284ad13a9)
1/*
2 * Block layer qmp and info dump related functions
3 *
4 * Copyright (c) 2003-2008 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

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

45 }
46
47 if (bs->backing_file[0]) {
48 info->has_backing_file = true;
49 info->backing_file = g_strdup(bs->backing_file);
50 }
51
52 info->backing_file_depth = bdrv_get_backing_file_depth(bs);
1/*
2 * Block layer qmp and info dump related functions
3 *
4 * Copyright (c) 2003-2008 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

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

45 }
46
47 if (bs->backing_file[0]) {
48 info->has_backing_file = true;
49 info->backing_file = g_strdup(bs->backing_file);
50 }
51
52 info->backing_file_depth = bdrv_get_backing_file_depth(bs);
53 info->detect_zeroes = bs->detect_zeroes;
53
54 if (bs->io_limits_enabled) {
55 ThrottleConfig cfg;
56 throttle_get_config(&bs->throttle_state, &cfg);
57 info->bps = cfg.buckets[THROTTLE_BPS_TOTAL].avg;
58 info->bps_rd = cfg.buckets[THROTTLE_BPS_READ].avg;
59 info->bps_wr = cfg.buckets[THROTTLE_BPS_WRITE].avg;
60

--- 562 unchanged lines hidden ---
54
55 if (bs->io_limits_enabled) {
56 ThrottleConfig cfg;
57 throttle_get_config(&bs->throttle_state, &cfg);
58 info->bps = cfg.buckets[THROTTLE_BPS_TOTAL].avg;
59 info->bps_rd = cfg.buckets[THROTTLE_BPS_READ].avg;
60 info->bps_wr = cfg.buckets[THROTTLE_BPS_WRITE].avg;
61

--- 562 unchanged lines hidden ---