[sheepdog] [PATCH] dog: fix to display progress bar for vdi_check correctly
Teruaki Ishizaki
ishizaki.teruaki at lab.ntt.co.jp
Fri Feb 13 11:19:50 CET 2015
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(-)
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
More information about the sheepdog
mailing list