Whamcloud - gitweb
Remove the extra magic from mds_extN.c for now (we will get it back soon).
authoradilger <adilger>
Mon, 16 Sep 2002 22:52:30 +0000 (22:52 +0000)
committeradilger <adilger>
Mon, 16 Sep 2002 22:52:30 +0000 (22:52 +0000)
lustre/mds/mds_extN.c

index 0467fcd..3d784b2 100644 (file)
@@ -122,7 +122,6 @@ static int mds_extN_set_md(struct inode *inode, void *handle,
                 rc = extN_xattr_set(handle, inode, EXTN_XATTR_INDEX_LUSTRE,
                                     XATTR_LUSTRE_MDS_OBJID, NULL, 0, 0);
         else {
-                lmm->lmm_magic = cpu_to_le32(XATTR_MDS_MO_MAGIC);
                 rc = extN_xattr_set(handle, inode, EXTN_XATTR_INDEX_LUSTRE,
                                     XATTR_LUSTRE_MDS_OBJID, lmm,
                                     lmm->lmm_easize, XATTR_CREATE);
@@ -166,15 +165,9 @@ static int mds_extN_get_md(struct inode *inode, struct lov_mds_md *lmm)
                 return rc;
         }
 
-        if (lmm->lmm_magic != cpu_to_le32(XATTR_MDS_MO_MAGIC)) {
-                CERROR("MDS striping md for ino %ld has bad magic\n",
-                       inode->i_ino);
-                rc = -EINVAL;
-        } else {
-                /* This field is byteswapped because it appears in the
-                 * catalogue.  All others are opaque to the MDS */
-                lmm->lmm_object_id = le64_to_cpu(lmm->lmm_object_id);
-        }
+        /* This field is byteswapped because it appears in the
+         * catalogue.  All others are opaque to the MDS */
+        lmm->lmm_object_id = le64_to_cpu(lmm->lmm_object_id);
 
         return rc;
 }