[Sheepdog] [PATCH 4/7] sheep: fix wrong use of object map
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Thu Aug 4 10:40:58 CEST 2011
Only data objects are related to the object map.
Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp>
---
sheep/sdnet.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/sheep/sdnet.c b/sheep/sdnet.c
index a40694d..784adc2 100644
--- a/sheep/sdnet.c
+++ b/sheep/sdnet.c
@@ -146,6 +146,9 @@ static void __done(struct work *work, int idx)
struct data_object_bmap *bmap, *n;
int nr_bmaps = 0;
+ if (!is_data_obj(obj_hdr->oid))
+ goto done;
+
list_for_each_entry_safe(bmap, n, &sys->consistent_obj_list, list) {
nr_bmaps++;
if (bmap->vdi_id == vdi_id) {
--
1.7.2.5
More information about the sheepdog
mailing list