Whamcloud - gitweb
remove noisy debug code
authorhuanghua <huanghua>
Mon, 7 Aug 2006 16:05:57 +0000 (16:05 +0000)
committerhuanghua <huanghua>
Mon, 7 Aug 2006 16:05:57 +0000 (16:05 +0000)
lustre/mdd/mdd_handler.c

index 2150240..6493d44 100644 (file)
@@ -1013,7 +1013,7 @@ static int __mdd_object_initialize(const struct lu_context *ctxt,
         struct lu_attr    *la = &mdd_ctx_info(ctxt)->mti_la;
         struct dt_object  *dt_parent = mdd_object_child(parent);
         struct dt_object  *dt_child = mdd_object_child(child);
-        int                rc;
+        int                rc = 0;
         ENTRY;
 
         /* FIXME & TODO: valid code need some convertion from Lustre to linux */
@@ -1024,8 +1024,6 @@ static int __mdd_object_initialize(const struct lu_context *ctxt,
         if (rc != 0)
                 RETURN(rc);
         if (la->la_mode & S_ISGID) {
-                CDEBUG(D_ERROR, "Parent "DFID3" is a GID\n", 
-                                PFID3(mdo2fid(parent)));
                 ma->ma_attr.la_gid = la->la_gid;
                 rc = dt_child->do_ops->do_attr_get(ctxt, dt_child, la);
                 if (rc != 0)
@@ -1037,9 +1035,6 @@ static int __mdd_object_initialize(const struct lu_context *ctxt,
                 }
         }
 
-        CDEBUG(D_ERROR, "Child "DFID3" has u/gid: %d:%d\n", 
-                        PFID3(mdo2fid(child)), ma->ma_attr.la_uid, 
-                        ma->ma_attr.la_gid);
         rc = dt_child->do_ops->do_attr_set(ctxt, dt_child, &ma->ma_attr,handle);
         if (rc != 0)
                 RETURN(rc); 
@@ -1048,7 +1043,7 @@ static int __mdd_object_initialize(const struct lu_context *ctxt,
         rc = dt_parent->do_ops->do_attr_set(ctxt, dt_parent, &ma->ma_attr, handle);
         if (rc != 0)
                 RETURN(rc); 
-        
         if (S_ISDIR(ma->ma_attr.la_mode)) {
                 /* add . and .. for newly created dir */
                 __mdd_ref_add(ctxt, child, handle);