[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [RFC PATCH 2/3] block: assign backing relationship in d
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [RFC PATCH 2/3] block: assign backing relationship in drive-backup |
Date: |
Wed, 26 Jun 2013 09:15:12 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 |
Il 26/06/2013 05:59, Fam Zheng ha scritto:
> Assign source image as the backing hd of target bs, so reading target bs
> gets the point-in-time copy of data from source image.
>
> Signed-off-by: Fam Zheng <address@hidden>
> ---
> blockdev.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/blockdev.c b/blockdev.c
> index 5e694f3..a1d816e 100644
> --- a/blockdev.c
> +++ b/blockdev.c
> @@ -1504,6 +1504,10 @@ void qmp_drive_backup(const char *device, const char
> *target,
> return;
> }
>
> + target_bs->backing_hd = bs;
> + pstrcpy(target_bs->backing_file, sizeof(target_bs->backing_file),
> + bs->filename);
backing_format missing.
Paolo
> backup_start(bs, target_bs, speed, on_source_error, on_target_error,
> block_job_cb, bs, &local_err);
> if (local_err != NULL) {
>
[Qemu-devel] [RFC PATCH 2/3] block: assign backing relationship in drive-backup, Fam Zheng, 2013/06/26
- Re: [Qemu-devel] [RFC PATCH 2/3] block: assign backing relationship in drive-backup,
Paolo Bonzini <=
[Qemu-devel] [RFC PATCH 3/3] nbd: don't get ref if bs has no drive, Fam Zheng, 2013/06/26
Re: [Qemu-devel] [RFC PATCH 0/3] Point-in-time snapshot exporting with drive-backup, Paolo Bonzini, 2013/06/26