From: phil Date: Mon, 8 Dec 2003 14:48:36 +0000 (+0000) Subject: Fix confusing MDC error message X-Git-Tag: 1.0.2~90 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=adc50668d425f17779c33025db9704bdca7a8bfa;p=fs%2Flustre-release.git Fix confusing MDC error message --- diff --git a/lustre/mdc/mdc_request.c b/lustre/mdc/mdc_request.c index 2c9787a..ef6861c 100644 --- a/lustre/mdc/mdc_request.c +++ b/lustre/mdc/mdc_request.c @@ -829,25 +829,23 @@ int mdc_init_ea_size(struct obd_device *obd, char *lov_name) lov_obd = class_name2obd(lov_name); if (!lov_obd) { - CERROR("MDC cannot locate LOV %s!\n", - lov_name); + CERROR("MDC cannot locate LOV %s!\n", lov_name); RETURN(-ENOTCONN); } rc = obd_connect(&conn, lov_obd, &obd->obd_uuid); if (rc) { - CERROR("MDS cannot connect to LOV %s (%d) - no logging!\n", - lov_name, rc); + CERROR("MDC failed connect to LOV %s (%d)\n", lov_name, rc); RETURN(rc); } exp = class_conn2export(&conn); valsize = sizeof(desc); - rc = obd_get_info(exp, strlen("lovdesc") + 1, "lovdesc", + rc = obd_get_info(exp, strlen("lovdesc") + 1, "lovdesc", &valsize, &desc); if (rc == 0) { cli->cl_max_mds_easize = obd_size_diskmd(exp, NULL); - cli->cl_max_mds_cookiesize = desc.ld_tgt_count * + cli->cl_max_mds_cookiesize = desc.ld_tgt_count * sizeof(struct llog_cookie); } obd_disconnect(exp, 0);