Commit Graph

2 Commits

Author SHA1 Message Date
Dietmar Maurer
cf9cc8878d add backup related monitor commands
We use a generic BackupDriver struct to encapsulate all archive format
related function.

Another option would be to simply dump <devid,cluster_num,cluster_data> to
the output fh (pipe), and an external binary saves the data. That way we
could move the whole archive format related code out of qemu.
2013-02-21 12:16:51 +01:00
Dietmar Maurer
1d0c6dfc96 add basic backup support to block driver
Function backup_job_create() creates a block job to backup a block device.
The coroutine is started with backup_job_start().

We call backup_do_cow() for each write during backup. That function
reads the original data and pass it to backup_dump_cb().

The tracked_request infrastructure is used to serialize access.

Currently backup cluster size is hardcoded to 65536 bytes.
2013-02-21 12:16:37 +01:00