From efd018086983067ac27a44962f01fc82eb7e6b96 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 20 May 2005 11:35:45 +0000 Subject: [PATCH] b=6360 - couple asserts and debug info --- lustre/mds/mds_lov.c | 1 + lustre/mds/mds_unlink_open.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lustre/mds/mds_lov.c b/lustre/mds/mds_lov.c index 6fddf12..0f6bf52 100644 --- a/lustre/mds/mds_lov.c +++ b/lustre/mds/mds_lov.c @@ -312,6 +312,7 @@ int mds_dt_connect(struct obd_device *obd, char * lov_name) * it can use the obd_recovering flag to determine when the * the OBD is full available. */ if (!obd->obd_recovering) { + CDEBUG(D_OTHER, "call mds_postrecov_common()\n"); rc = mds_postrecov_common(obd); if (rc > 0) rc = 0; diff --git a/lustre/mds/mds_unlink_open.c b/lustre/mds/mds_unlink_open.c index 127adc8..154efb3 100644 --- a/lustre/mds/mds_unlink_open.c +++ b/lustre/mds/mds_unlink_open.c @@ -100,6 +100,7 @@ static int mds_unlink_orphan(struct obd_device *obd, struct dentry *dchild, ENTRY; LASSERT(mds->mds_dt_obd != NULL); + LASSERT(obd->obd_recovering == 0); /* We don't need to do any of these other things for orhpan dirs, * especially not mds_get_md (may get a default LOV EA, bug 4554) */ @@ -174,6 +175,7 @@ int mds_cleanup_orphans(struct obd_device *obd) int rc = 0, item = 0, namlen; ENTRY; + LASSERT(obd->obd_recovering == 0); push_ctxt(&saved, &obd->obd_lvfs_ctxt, NULL); dentry = dget(mds->mds_pending_dir); if (IS_ERR(dentry)) -- 1.8.3.1