Only data objects are related to the object map.

Signed-off-by: MORITA Kazutaka <[email protected]>
---
 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

-- 
sheepdog mailing list
[email protected]
http://lists.wpkg.org/mailman/listinfo/sheepdog

Reply via email to