qapi.c (964737ea195de1560f3bcf55b8b6d4f7d0d4a619) | qapi.c (eae041fe6f4314962e873615134eefb32cf8ba61) |
---|---|
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 --- 120 unchanged lines hidden (view full) --- 129 if (bdrv_get_info(bs, &bdi) >= 0) { 130 if (bdi.cluster_size != 0) { 131 info->cluster_size = bdi.cluster_size; 132 info->has_cluster_size = true; 133 } 134 info->dirty_flag = bdi.is_dirty; 135 info->has_dirty_flag = true; 136 } | 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 --- 120 unchanged lines hidden (view full) --- 129 if (bdrv_get_info(bs, &bdi) >= 0) { 130 if (bdi.cluster_size != 0) { 131 info->cluster_size = bdi.cluster_size; 132 info->has_cluster_size = true; 133 } 134 info->dirty_flag = bdi.is_dirty; 135 info->has_dirty_flag = true; 136 } |
137 info->format_specific = bdrv_get_specific_info(bs); 138 info->has_format_specific = info->format_specific != NULL; 139 |
|
137 backing_filename = bs->backing_file; 138 if (backing_filename[0] != '\0') { 139 info->backing_filename = g_strdup(backing_filename); 140 info->has_backing_filename = true; 141 bdrv_get_full_backing_filename(bs, backing_filename2, 142 sizeof(backing_filename2)); 143 144 if (strcmp(backing_filename, backing_filename2) != 0) { --- 352 unchanged lines hidden --- | 140 backing_filename = bs->backing_file; 141 if (backing_filename[0] != '\0') { 142 info->backing_filename = g_strdup(backing_filename); 143 info->has_backing_filename = true; 144 bdrv_get_full_backing_filename(bs, backing_filename2, 145 sizeof(backing_filename2)); 146 147 if (strcmp(backing_filename, backing_filename2) != 0) { --- 352 unchanged lines hidden --- |