]>
Commit | Line | Data |
---|---|---|
884c5e9f | 1 | From aa580be154923056a52fdeec429f7e80f04b456e Mon Sep 17 00:00:00 2001 |
89af8a77 | 2 | From: Dietmar Maurer <dietmar@proxmox.com> |
884c5e9f DM |
3 | Date: Thu, 21 Feb 2013 12:22:41 +0100 |
4 | Subject: [PATCH v5 0/6] Efficient VM backup for qemu | |
89af8a77 DM |
5 | |
6 | This series provides a way to efficiently backup VMs. | |
7 | ||
8 | * Backup to a single archive file | |
9 | * Backup contain all data to restore VM (full backup) | |
10 | * Do not depend on storage type or image format | |
11 | * Avoid use of temporary storage | |
12 | * store sparse images efficiently | |
13 | ||
14 | The file docs/backup.txt contains more details. | |
15 | ||
16 | Changes since v1: | |
17 | ||
18 | * fix spelling errors | |
19 | * move BackupInfo from BDS to BackupBlockJob | |
20 | * introduce BackupDriver to allow more than one backup format | |
21 | * vma: add suport to store vmstate (size is not known in advance) | |
22 | * add ability to store VM state | |
23 | ||
24 | Changes since v2: | |
25 | ||
26 | * BackupDriver: remove cancel_cb | |
27 | * use enum for BackupFormat | |
28 | * vma: use bdrv_open instead of bdrv_file_open | |
29 | * vma: fix aio, use O_DIRECT | |
30 | * backup one drive after another (try to avoid high load) | |
31 | ||
32 | Changes since v3: | |
33 | ||
34 | * move reviewer info from commit messages to cover-letter | |
35 | * remove 'RFC' from log headers and file names | |
36 | * removed comment about slow qcow2 snapshot bug | |
37 | * fix spelling errors | |
38 | * fixed copyright | |
39 | * change 'backupfile' parameter name to 'backup-file' | |
40 | * change 'config-filename' parameter name to 'config-file' | |
41 | * add documentation for 'devlist' parameter. | |
42 | * rename backup_cancel to backup-cancel | |
43 | ||
884c5e9f DM |
44 | Changes since v4: |
45 | ||
46 | * vma create: write verbose output to stderr (not stdout) | |
47 | * backup.c: use rwlock instead of sleep, remove backup_in_progress_count | |
48 | * BackupDriver: remove '_cb' suffix | |
49 | * include cleanups suggested by Stefan | |
50 | * use CHAR_BIT instead of magic number '8' | |
51 | * implemented bdrv_co_is_allocated_above() - disabled for now because | |
52 | it actually slows down backup speed by 15% | |
53 | * extend regression tests to test unallocated regions | |
89af8a77 DM |
54 | |
55 | Dietmar Maurer (6): | |
56 | add documenation for new backup framework | |
57 | add basic backup support to block driver | |
58 | add backup related monitor commands | |
59 | introduce new vma archive format | |
60 | add regression tests for backup | |
61 | add vm state to backups | |
62 | ||
63 | Makefile | 3 +- | |
64 | Makefile.objs | 1 + | |
884c5e9f | 65 | backup.c | 355 +++++++++++++++++ |
89af8a77 DM |
66 | backup.h | 45 +++ |
67 | block.c | 71 ++++- | |
68 | blockdev.c | 617 ++++++++++++++++++++++++++++++ | |
69 | docs/backup.txt | 116 ++++++ | |
70 | docs/specs/vma_spec.txt | 24 ++ | |
71 | hmp-commands.hx | 31 ++ | |
72 | hmp.c | 64 ++++ | |
73 | hmp.h | 3 + | |
74 | include/block/block.h | 2 + | |
75 | include/block/blockjob.h | 10 + | |
76 | monitor.c | 7 + | |
77 | qapi-schema.json | 98 +++++ | |
78 | qmp-commands.hx | 27 ++ | |
79 | tests/Makefile | 11 +- | |
884c5e9f | 80 | tests/backup-test.c | 529 ++++++++++++++++++++++++++ |
89af8a77 | 81 | vma-reader.c | 799 +++++++++++++++++++++++++++++++++++++++ |
884c5e9f DM |
82 | vma-writer.c | 940 ++++++++++++++++++++++++++++++++++++++++++++++ |
83 | vma.c | 561 +++++++++++++++++++++++++++ | |
89af8a77 | 84 | vma.h | 145 +++++++ |
884c5e9f | 85 | 22 files changed, 4450 insertions(+), 9 deletions(-) |
89af8a77 DM |
86 | create mode 100644 backup.c |
87 | create mode 100644 backup.h | |
88 | create mode 100644 docs/backup.txt | |
89 | create mode 100644 docs/specs/vma_spec.txt | |
90 | create mode 100644 tests/backup-test.c | |
91 | create mode 100644 vma-reader.c | |
92 | create mode 100644 vma-writer.c | |
93 | create mode 100644 vma.c | |
94 | create mode 100644 vma.h | |
95 | ||
96 | -- | |
97 | 1.7.2.5 | |
98 |