[sheepdog] [PATCH] dog: fix vdi_alter_copy for using a right block_size_shift
Hitoshi Mitake
mitake.hitoshi at lab.ntt.co.jp
Tue Feb 10 07:14:38 CET 2015
At Tue, 10 Feb 2015 10:59:18 +0900,
Teruaki Ishizaki wrote:
>
> Previously dog vdi_alter_copy command was failed, because of using
> a invalid block_size_shift.
> This patch fix to use a right block_size_shift.
>
> Signed-off-by: Teruaki Ishizaki <ishizaki.teruaki at lab.ntt.co.jp>
> ---
> dog/vdi.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
Applied, thanks.
Hitoshi
>
> diff --git a/dog/vdi.c b/dog/vdi.c
> index 8e612af..6cb813e 100644
> --- a/dog/vdi.c
> +++ b/dog/vdi.c
> @@ -2916,6 +2916,7 @@ static int vdi_alter_copy(int argc, char **argv)
> hdr.vdi_state.new_vid = vid;
> hdr.vdi_state.copies = vdi_cmd_data.nr_copies;
> hdr.vdi_state.copy_policy = vdi_cmd_data.copy_policy;
> + hdr.vdi_state.block_size_shift = inode->block_size_shift;
>
> ret = send_light_req(&sd_nid, &hdr);
> if (ret == 0) {
> --
> 1.7.1
>
> --
> sheepdog mailing list
> sheepdog at lists.wpkg.org
> https://lists.wpkg.org/mailman/listinfo/sheepdog
More information about the sheepdog
mailing list