From 1e0bb162cfedc4ab029ea604a10d65c078195307 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 31 May 2005 10:10:25 +0000 Subject: [PATCH] - show nid for stale clients --- lustre/obdclass/genops.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lustre/obdclass/genops.c b/lustre/obdclass/genops.c index e0ffba5..ca55015 100644 --- a/lustre/obdclass/genops.c +++ b/lustre/obdclass/genops.c @@ -745,6 +745,7 @@ int class_disconnect_stale_exports(struct obd_device *obd, int (*test_export)(struct obd_export *), unsigned long flags) { + char str[PTL_NALFMT_SIZE]; struct list_head work_list; struct list_head *pos, *n; struct obd_export *exp; @@ -759,8 +760,9 @@ int class_disconnect_stale_exports(struct obd_device *obd, list_del(&exp->exp_obd_chain); list_add(&exp->exp_obd_chain, &work_list); cnt++; - CDEBUG(D_ERROR, "%s: disconnect stale client %s\n", - obd->obd_name, exp->exp_client_uuid.uuid); + ptlrpc_peernid2str(&exp->exp_connection->c_peer, str); + CDEBUG(D_ERROR, "%s: disconnect stale client %s@%s\n", + obd->obd_name, exp->exp_client_uuid.uuid, str); } } spin_unlock(&obd->obd_dev_lock); -- 1.8.3.1