Whamcloud - gitweb
Branch b_release_1_8_1
authorjohann <johann>
Fri, 9 Oct 2009 07:45:13 +0000 (07:45 +0000)
committerjohann <johann>
Fri, 9 Oct 2009 07:45:13 +0000 (07:45 +0000)
b=21044
i=shadow
i=bobijam

Change LASSERT from bug 19934 to CWARN.

lustre/mds/mds_open.c

index bd86333..1bfc5f7 100644 (file)
@@ -361,8 +361,10 @@ static int mds_create_objects(struct ptlrpc_request *req, int offset,
                 lmm_size = rec->ur_eadatalen;
                 lmm = rec->ur_eadata;
                 LASSERT(lmm);
-                LASSERT(lov_mds_md_size(lmm->lmm_stripe_count,
-                                        lmm->lmm_magic) == lmm_size);
+                if (lov_mds_md_size(lmm->lmm_stripe_count,
+                                    lmm->lmm_magic) != lmm_size)
+                        CWARN("Bad lmm_size during open replay for inode "
+                              "%lu\n", inode->i_ino);
 
                 if (*handle == NULL) {
                         int stripe_count = le32_to_cpu(lmm->lmm_stripe_count);