[sheepdog] [PATCH] dog: fix check of snapshot vdi

MORITA Kazutaka morita.kazutaka at gmail.com
Thu Aug 29 02:54:32 CEST 2013


From: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>

This fixes a bug introduced by the commit 996751b.

Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
 dog/vdi.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dog/vdi.c b/dog/vdi.c
index b0c2ea5..4601140 100644
--- a/dog/vdi.c
+++ b/dog/vdi.c
@@ -1527,7 +1527,7 @@ int do_vdi_check(const struct sd_inode *inode)
 	for (int idx = 0; idx < max_idx; idx++) {
 		vid = inode->data_vdi_id[idx];
 		if (vid) {
-			oid = vid_to_data_oid(inode->vdi_id, idx);
+			oid = vid_to_data_oid(vid, idx);
 			queue_vdi_check_work(inode, oid, &done, wq);
 		} else {
 			done += SD_DATA_OBJ_SIZE;
-- 
1.7.9.5




More information about the sheepdog mailing list