qcow2.h (f4f0d391b26afcce86df85566788be7170127116) qcow2.h (66f82ceed6781261c09e65fb440ca76842fd0500)
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

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

179int qcow2_update_snapshot_refcount(BlockDriverState *bs,
180 int64_t l1_table_offset, int l1_size, int addend);
181
182int qcow2_check_refcounts(BlockDriverState *bs);
183
184/* qcow2-cluster.c functions */
185int qcow2_grow_l1_table(BlockDriverState *bs, int min_size);
186void qcow2_l2_cache_reset(BlockDriverState *bs);
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

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

179int qcow2_update_snapshot_refcount(BlockDriverState *bs,
180 int64_t l1_table_offset, int l1_size, int addend);
181
182int qcow2_check_refcounts(BlockDriverState *bs);
183
184/* qcow2-cluster.c functions */
185int qcow2_grow_l1_table(BlockDriverState *bs, int min_size);
186void qcow2_l2_cache_reset(BlockDriverState *bs);
187int qcow2_decompress_cluster(BDRVQcowState *s, uint64_t cluster_offset);
187int qcow2_decompress_cluster(BlockDriverState *bs, uint64_t cluster_offset);
188void qcow2_encrypt_sectors(BDRVQcowState *s, int64_t sector_num,
189 uint8_t *out_buf, const uint8_t *in_buf,
190 int nb_sectors, int enc,
191 const AES_KEY *key);
192
193uint64_t qcow2_get_cluster_offset(BlockDriverState *bs, uint64_t offset,
194 int *num);
195int qcow2_alloc_cluster_offset(BlockDriverState *bs, uint64_t offset,

--- 17 unchanged lines hidden ---
188void qcow2_encrypt_sectors(BDRVQcowState *s, int64_t sector_num,
189 uint8_t *out_buf, const uint8_t *in_buf,
190 int nb_sectors, int enc,
191 const AES_KEY *key);
192
193uint64_t qcow2_get_cluster_offset(BlockDriverState *bs, uint64_t offset,
194 int *num);
195int qcow2_alloc_cluster_offset(BlockDriverState *bs, uint64_t offset,

--- 17 unchanged lines hidden ---