[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 01/10] RFC: Add save and support snapshot dependency
From: |
junyan . he |
Subject: |
[Qemu-devel] [PATCH 01/10] RFC: Add save and support snapshot dependency function to block driver. |
Date: |
Tue, 13 Mar 2018 16:33:44 +0800 |
From: Junyan He <address@hidden>
We want to support incremental snapshot saving, this needs the file
system support dependency saving. Later snapshots may ref the dependent
snapshot's content, and most time should be cluster aligned.
Add a query function to check whether the file system support this, and
use the save_dependency function to do the real work.
Signed-off-by: Junyan He <address@hidden>
---
include/block/block_int.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/include/block/block_int.h b/include/block/block_int.h
index 64a5700..be1eca3 100644
--- a/include/block/block_int.h
+++ b/include/block/block_int.h
@@ -274,6 +274,15 @@ struct BlockDriver {
const char *snapshot_id,
const char *name,
Error **errp);
+ int (*bdrv_snapshot_save_dependency)(BlockDriverState *bs,
+ const char *depend_snapshot_id,
+ int64_t depend_offset,
+ int64_t depend_size,
+ int64_t offset,
+ Error **errp);
+ int (*bdrv_snapshot_support_dependency)(BlockDriverState *bs,
+ int32_t *alignment);
+
int (*bdrv_get_info)(BlockDriverState *bs, BlockDriverInfo *bdi);
ImageInfoSpecific *(*bdrv_get_specific_info)(BlockDriverState *bs);
--
2.7.4
- [Qemu-devel] [PATCH 04/10] RFC: Set memory_region_set_log available for more client., (continued)
- [Qemu-devel] [PATCH 04/10] RFC: Set memory_region_set_log available for more client., junyan . he, 2018/03/13
- [Qemu-devel] [PATCH 05/10] RFC: Add memory region snapshot bitmap get function., junyan . he, 2018/03/13
- [Qemu-devel] [PATCH 07/10] RFC: Add get_current_snapshot_info to get the snapshot state., junyan . he, 2018/03/13
- [Qemu-devel] [PATCH 06/10] RFC: Add save dependency functions to qemu_file, junyan . he, 2018/03/13
- [Qemu-devel] [PATCH 08/10] RFC: Add a section_id parameter to save_live_iterate call., junyan . he, 2018/03/13
- [Qemu-devel] [PATCH 09/10] RFC: Add nvdimm snapshot saving to migration., junyan . he, 2018/03/13
- [Qemu-devel] [PATCH 10/10] RFC: Enable nvdimm snapshot functions., junyan . he, 2018/03/13
- Re: [Qemu-devel] [PATCH 00/10] RFC: Optimize nvdimm kind memory for snapshot., no-reply, 2018/03/13
- Re: [Qemu-devel] [PATCH 00/10] RFC: Optimize nvdimm kind memory for snapshot., no-reply, 2018/03/14
- [Qemu-devel] [PATCH 00/10] RFC: Optimize nvdimm kind memory for snapshot., junyan . he, 2018/03/15
- [Qemu-devel] [PATCH 01/10] RFC: Add save and support snapshot dependency function to block driver.,
junyan . he <=
- [Qemu-devel] [PATCH 04/10] RFC: Set memory_region_set_log available for more client., junyan . he, 2018/03/15
- [Qemu-devel] [PATCH 07/10] RFC: Add get_current_snapshot_info to get the snapshot state., junyan . he, 2018/03/15
- [Qemu-devel] [PATCH 10/10] RFC: Enable nvdimm snapshot functions., junyan . he, 2018/03/15
- [Qemu-devel] [PATCH 05/10] RFC: Add memory region snapshot bitmap get function., junyan . he, 2018/03/15
- [Qemu-devel] [PATCH 08/10] RFC: Add a section_id parameter to save_live_iterate call., junyan . he, 2018/03/15
- [Qemu-devel] [PATCH 03/10] RFC: Implement save and support snapshot dependency in block driver layer., junyan . he, 2018/03/15
- [Qemu-devel] [PATCH 06/10] RFC: Add save dependency functions to qemu_file, junyan . he, 2018/03/15
- [Qemu-devel] [PATCH 02/10] RFC: Implement qcow2's snapshot dependent saving function., junyan . he, 2018/03/15
- [Qemu-devel] [PATCH 09/10] RFC: Add nvdimm snapshot saving to migration., junyan . he, 2018/03/15
- Re: [Qemu-devel] [PATCH 00/10] RFC: Optimize nvdimm kind memory for snapshot., no-reply, 2018/03/15