[sheepdog] [PATCH] dog: fix to display progress bar for vdi_check correctly

Hitoshi Mitake mitake.hitoshi at gmail.com
Sun Feb 15 15:18:42 CET 2015


At Fri, 13 Feb 2015 19:19:50 +0900,
Teruaki Ishizaki wrote:
> 
> To display progress bar for vdi_check, block_size_shift
> information is needed.
> This patch fixes to display progress bar correctly.
> 
> 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 aa6c38d..f1ebd45 100644
> --- a/dog/vdi.c
> +++ b/dog/vdi.c
> @@ -2125,6 +2125,7 @@ static void queue_vdi_check_work(const struct sd_inode *inode, uint64_t oid,
>  	info->done = done;
>  	info->wq = wq;
>  	info->copy_policy = inode->copy_policy;
> +	info->block_size_shift = inode->block_size_shift;
>  
>  	oid_to_vnodes(oid, &sd_vroot, nr_copies, tgt_vnodes);
>  	for (int i = 0; i < nr_copies; i++) {
> -- 
> 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