[pve-devel] applied: [PATCH v2 qemu 2/2] vma: allow partial restore

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Apr 25 18:10:54 CEST 2022


On 21.04.22 13:26, Fabian Ebner wrote:
> Introduce a new map line for skipping a certain drive, of the form
> skip=drive-scsi0
> 
> Since in PVE, most archives are compressed and piped to vma for
> restore, it's not easily possible to skip reads.
> 
> For the reader, a new skip flag for VmaRestoreState is added and the
> target is allowed to be NULL if skip is specified when registering. If
> the skip flag is set, no writes will be made as well as no check for
> duplicate clusters. Therefore, the flag is not set for verify.
> 
> Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
> ---
> 
> Better viewed with -w
> 
> Changes from v1:
>     * Use dedicated map line skip=<drivename> rather than a special path
>       "/dev/null" to communicate that a drive should be skipped.
> 
>  vma-reader.c |  64 ++++++++++++---------
>  vma.c        | 157 +++++++++++++++++++++++++++++----------------------
>  vma.h        |   2 +-
>  3 files changed, 126 insertions(+), 97 deletions(-)
> 
>

applied, with Wolfgang's Ack, thanks!





More information about the pve-devel mailing list