qcow2.c (e2dd273754eb9a47c33660b4e14074e8e96ada4d) qcow2.c (79a558664840adf502fe94907b0a680836e3e98e)
1/*
2 * Block driver for the QCOW version 2 format
3 *
4 * Copyright (c) 2004-2006 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

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

5221 BDRVQcow2State *s = bs->opaque;
5222 bdi->cluster_size = s->cluster_size;
5223 bdi->subcluster_size = s->subcluster_size;
5224 bdi->vm_state_offset = qcow2_vm_state_offset(s);
5225 bdi->is_dirty = s->incompatible_features & QCOW2_INCOMPAT_DIRTY;
5226 return 0;
5227}
5228
1/*
2 * Block driver for the QCOW version 2 format
3 *
4 * Copyright (c) 2004-2006 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

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

5221 BDRVQcow2State *s = bs->opaque;
5222 bdi->cluster_size = s->cluster_size;
5223 bdi->subcluster_size = s->subcluster_size;
5224 bdi->vm_state_offset = qcow2_vm_state_offset(s);
5225 bdi->is_dirty = s->incompatible_features & QCOW2_INCOMPAT_DIRTY;
5226 return 0;
5227}
5228
5229static ImageInfoSpecific *qcow2_get_specific_info(BlockDriverState *bs,
5230 Error **errp)
5229static ImageInfoSpecific * GRAPH_RDLOCK
5230qcow2_get_specific_info(BlockDriverState *bs, Error **errp)
5231{
5232 BDRVQcow2State *s = bs->opaque;
5233 ImageInfoSpecific *spec_info;
5234 QCryptoBlockInfo *encrypt_info = NULL;
5235
5236 if (s->crypto != NULL) {
5237 encrypt_info = qcrypto_block_get_info(s->crypto, errp);
5238 if (!encrypt_info) {

--- 955 unchanged lines hidden ---
5231{
5232 BDRVQcow2State *s = bs->opaque;
5233 ImageInfoSpecific *spec_info;
5234 QCryptoBlockInfo *encrypt_info = NULL;
5235
5236 if (s->crypto != NULL) {
5237 encrypt_info = qcrypto_block_get_info(s->crypto, errp);
5238 if (!encrypt_info) {

--- 955 unchanged lines hidden ---