[sheepdog] [PATCH 2/4] dog: fix check of snapshot vdi
MORITA Kazutaka
morita.kazutaka at gmail.com
Thu Aug 22 06:01:41 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 fff6a6b..fb2ff32 100644
--- a/dog/vdi.c
+++ b/dog/vdi.c
@@ -1571,7 +1571,7 @@ int do_vdi_check(const struct sd_inode *inode, bool check_consistency)
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, check_consistency,
&done, wq);
} else {
--
1.7.9.5
More information about the sheepdog
mailing list