qapi.c (49d2165d7d6b589d1ea28b15a8874c417bdc55ed) | qapi.c (27ccdd52598290f0f8b58be56e235aff7aebfaf3) |
---|---|
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 --- 53 unchanged lines hidden (view full) --- 62 if (bs->backing_file[0]) { 63 info->has_backing_file = true; 64 info->backing_file = g_strdup(bs->backing_file); 65 } 66 67 info->backing_file_depth = bdrv_get_backing_file_depth(bs); 68 info->detect_zeroes = bs->detect_zeroes; 69 | 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 --- 53 unchanged lines hidden (view full) --- 62 if (bs->backing_file[0]) { 63 info->has_backing_file = true; 64 info->backing_file = g_strdup(bs->backing_file); 65 } 66 67 info->backing_file_depth = bdrv_get_backing_file_depth(bs); 68 info->detect_zeroes = bs->detect_zeroes; 69 |
70 if (bs->throttle_state) { | 70 if (bs->blk && blk_get_public(bs->blk)->throttle_state) { |
71 ThrottleConfig cfg; 72 73 throttle_group_get_config(bs, &cfg); 74 75 info->bps = cfg.buckets[THROTTLE_BPS_TOTAL].avg; 76 info->bps_rd = cfg.buckets[THROTTLE_BPS_READ].avg; 77 info->bps_wr = cfg.buckets[THROTTLE_BPS_WRITE].avg; 78 --- 705 unchanged lines hidden --- | 71 ThrottleConfig cfg; 72 73 throttle_group_get_config(bs, &cfg); 74 75 info->bps = cfg.buckets[THROTTLE_BPS_TOTAL].avg; 76 info->bps_rd = cfg.buckets[THROTTLE_BPS_READ].avg; 77 info->bps_wr = cfg.buckets[THROTTLE_BPS_WRITE].avg; 78 --- 705 unchanged lines hidden --- |