qapi.c (d3bd57d9f6a60187e381c6dbcb004701fb090be8) qapi.c (1bf6e9ca9234e1dbcaa18baa06eca9d55cc2dbbb)
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

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

277 if (bdrv_get_info(bs, &bdi) >= 0) {
278 if (bdi.cluster_size != 0) {
279 info->cluster_size = bdi.cluster_size;
280 info->has_cluster_size = true;
281 }
282 info->dirty_flag = bdi.is_dirty;
283 info->has_dirty_flag = true;
284 }
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

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

277 if (bdrv_get_info(bs, &bdi) >= 0) {
278 if (bdi.cluster_size != 0) {
279 info->cluster_size = bdi.cluster_size;
280 info->has_cluster_size = true;
281 }
282 info->dirty_flag = bdi.is_dirty;
283 info->has_dirty_flag = true;
284 }
285 info->format_specific = bdrv_get_specific_info(bs);
285 info->format_specific = bdrv_get_specific_info(bs, &err);
286 if (err) {
287 error_propagate(errp, err);
288 qapi_free_ImageInfo(info);
289 goto out;
290 }
286 info->has_format_specific = info->format_specific != NULL;
287
288 backing_filename = bs->backing_file;
289 if (backing_filename[0] != '\0') {
290 char *backing_filename2 = g_malloc0(PATH_MAX);
291 info->backing_filename = g_strdup(backing_filename);
292 info->has_backing_filename = true;
293 bdrv_get_full_backing_filename(bs, backing_filename2, PATH_MAX, &err);

--- 580 unchanged lines hidden ---
291 info->has_format_specific = info->format_specific != NULL;
292
293 backing_filename = bs->backing_file;
294 if (backing_filename[0] != '\0') {
295 char *backing_filename2 = g_malloc0(PATH_MAX);
296 info->backing_filename = g_strdup(backing_filename);
297 info->has_backing_filename = true;
298 bdrv_get_full_backing_filename(bs, backing_filename2, PATH_MAX, &err);

--- 580 unchanged lines hidden ---