From d95845c4601b412d454314ccb1fd14f24b329541 Mon Sep 17 00:00:00 2001 From: huanghua Date: Mon, 7 Aug 2006 16:05:57 +0000 Subject: [PATCH] remove noisy debug code --- lustre/mdd/mdd_handler.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lustre/mdd/mdd_handler.c b/lustre/mdd/mdd_handler.c index 2150240..6493d44 100644 --- a/lustre/mdd/mdd_handler.c +++ b/lustre/mdd/mdd_handler.c @@ -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); -- 1.8.3.1