[sheepdog] [PATCH] dog: fix vdi_alter_copy for using a right block_size_shift
Teruaki Ishizaki
ishizaki.teruaki at lab.ntt.co.jp
Tue Feb 10 02:59:18 CET 2015
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(-)
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
More information about the sheepdog
mailing list