2 * QEMU backup related definitions
4 * Copyright (C) 2013 Proxmox Server Solutions
7 * Dietmar Maurer (dietmar@proxmox.com)
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
17 #define BACKUP_CLUSTER_BITS 16
18 #define BACKUP_CLUSTER_SIZE (1<<BACKUP_CLUSTER_BITS)
19 #define BACKUP_BLOCKS_PER_CLUSTER (BACKUP_CLUSTER_SIZE/BDRV_SECTOR_SIZE)
21 typedef int BackupDumpFunc(void *opaque
, BlockDriverState
*bs
,
22 int64_t cluster_num
, unsigned char *buf
);
24 void backup_job_start(BlockDriverState
*bs
, bool cancel
);
26 int backup_job_create(BlockDriverState
*bs
, BackupDumpFunc
*backup_dump_cb
,
27 BlockDriverCompletionFunc
*backup_complete_cb
,
28 void *opaque
, int64_t speed
);
30 #endif /* QEMU_BACKUP_H */