From d9683d9cd5ecf7dd2d0ff24492a2117c4c61356b Mon Sep 17 00:00:00 2001 From: Nathaniel Clark Date: Fri, 20 Jun 2014 10:37:42 -0400 Subject: [PATCH] LU-5187 ofd: Fix precreate console warning Alter console warning to be more explanitory. Also add debug log message to save developer centric info. Signed-off-by: Nathaniel Clark Change-Id: Ib1192562f75b1e2a2c8c9f4ee476da54ebeb1a9a Reviewed-on: http://review.whamcloud.com/10767 Reviewed-by: Bob Glossman Reviewed-by: Alex Zhuravlev Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/ofd/ofd_dev.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/lustre/ofd/ofd_dev.c b/lustre/ofd/ofd_dev.c index c278b91..a68928a 100644 --- a/lustre/ofd/ofd_dev.c +++ b/lustre/ofd/ofd_dev.c @@ -1719,12 +1719,17 @@ static int ofd_create_hdl(struct tgt_session_info *tsi) * LFSCK will eventually clean up any orphans. LU-14 */ if (diff > 5 * OST_MAX_PRECREATE) { diff = OST_MAX_PRECREATE / 2; - LCONSOLE_WARN("%s: precreate FID "DOSTID" is over %u " - "larger than the LAST_ID "DOSTID", only " - "precreating the last %u objects.\n", - ofd_name(ofd), POSTID(&oa->o_oi), - 5 * OST_MAX_PRECREATE, - POSTID(&oseq->os_oi), diff); + LCONSOLE_WARN("%s: Too many FIDs to precreate " + "OST replaced or reformatted: " + "LFSCK will clean up", + ofd_name(ofd)); + + CDEBUG(D_HA, "%s: precreate FID "DOSTID" is over " + "%u larger than the LAST_ID "DOSTID", only " + "precreating the last %u objects.\n", + ofd_name(ofd), POSTID(&oa->o_oi), + 5 * OST_MAX_PRECREATE, + POSTID(&oseq->os_oi), diff); ofd_seq_last_oid_set(oseq, ostid_id(&oa->o_oi) - diff); } -- 1.8.3.1