LCONSOLE_ERROR(fmt, arg) to LCONSOLE_ERROR_MSG(0x000, fmt, ## arg).
b=10595
i=adilger
/* end COMPAT_146 */
if (!target || target->obd_stopping || !target->obd_set_up) {
- LCONSOLE_ERROR(0x137, "UUID '%s' is not available "
- " for connect (%s)\n", str,
- !target ? "no target" :
- (target->obd_stopping ? "stopping" :
- "not set up"));
+ LCONSOLE_ERROR_MSG(0x137, "UUID '%s' is not available "
+ " for connect (%s)\n", str,
+ !target ? "no target" :
+ (target->obd_stopping ? "stopping" :
+ "not set up"));
GOTO(out, rc = -ENODEV);
}
struct ptlrpc_connection *conn = lock->l_export->exp_connection;
char *str = libcfs_nid2str(conn->c_peer.nid);
- LCONSOLE_ERROR(0x138, "A client on nid %s was evicted from "
- "service %s.\n", str, lock->l_export->exp_obd->obd_name);
+ LCONSOLE_ERROR_MSG(0x138, "A client on nid %s was evicted from "
+ "service %s.\n", str,
+ lock->l_export->exp_obd->obd_name);
- LCONSOLE_ERROR(0x012, "Lock %s callback to %s timed out for resource "
- "%d\n", ast_type, obd_export_nid2str(lock->l_export), rc);
+ LCONSOLE_ERROR_MSG(0x012, "Lock %s callback to %s timed out for "
+ "resource %d\n", ast_type,
+ obd_export_nid2str(lock->l_export), rc);
if (obd_dump_on_timeout)
libcfs_debug_dumplog();
rc = l_wait_event(ns->ns_waitq,
ns->ns_refcount == 0, &lwi);
if (ns->ns_refcount)
- LCONSOLE_ERROR(0x139, "Lock manager: wait for %s "
- "namespace cleanup aborted with %d "
- "resources in use. (%d)\nI'm going "
- "to try to clean up anyway, but I "
- "might need a reboot of this node.\n",
- ns->ns_name, (int) ns->ns_refcount, rc);
+ LCONSOLE_ERROR_MSG(0x139, "Lock manager: wait for %s "
+ "namespace cleanup aborted with %d "
+ "resources in use. (%d)\nI'm going "
+ "to try to clean up anyway, but I "
+ "might need a reboot of this node.\n",
+ ns->ns_name, (int) ns->ns_refcount,
+ rc);
CDEBUG(D_DLMTRACE,
"dlm namespace %s free done waiting\n", ns->ns_name);
}
flags = va_arg(ap, long);
flags &= FCNTL_FLMASK;
if (flags & FCNTL_FLMASK_INVALID) {
- LCONSOLE_ERROR(0x010, "liblustre does not support "
- "the O_NONBLOCK or O_ASYNC flags. "
- "Please fix your application.\n");
+ LCONSOLE_ERROR_MSG(0x010, "liblustre does not support "
+ "the O_NONBLOCK or O_ASYNC flags. "
+ "Please fix your application.\n");
*rtn = -EINVAL;
err = EINVAL;
break;
err = obd_connect(&mdc_conn, obd, &sbi->ll_sb_uuid, data);
if (err == -EBUSY) {
- LCONSOLE_ERROR(0x14f, "An MDT (mdc %s) is performing recovery,"
- " of which this client is not a part. Please "
- "wait for recovery to complete, abort, or "
- "time out.\n", mdc);
+ LCONSOLE_ERROR_MSG(0x14f, "An MDT (mdc %s) is performing "
+ "recovery, of which this client is not a "
+ "part. Please wait for recovery to complete,"
+ " abort, or time out.\n", mdc);
GOTO(out, err);
} else if (err) {
CERROR("cannot connect to %s: rc = %d\n", mdc, err);
err = obd_connect(&osc_conn, obd, &sbi->ll_sb_uuid, data);
if (err == -EBUSY) {
- LCONSOLE_ERROR(0x150, "An OST (osc %s) is performing recovery,"
- " of which this client is not a part. Please "
- "wait for recovery to complete, abort, or "
- "time out.\n", osc);
+ LCONSOLE_ERROR_MSG(0x150, "An OST (osc %s) is performing "
+ "recovery, of which this client is not a "
+ "part. Please wait for recovery to "
+ "complete, abort, or time out.\n", osc);
GOTO(out, err);
} else if (err) {
CERROR("cannot connect to %s: rc = %d\n", osc, err);
err = obd_prep_async_page(sbi->ll_osc_exp, NULL, NULL, NULL,
0, NULL, NULL, NULL);
if (err < 0) {
- LCONSOLE_ERROR(0x151, "There are no OST's in this filesystem. "
- "There must be at least one active OST for "
- "a client to start.\n");
+ LCONSOLE_ERROR_MSG(0x151, "There are no OST's in this "
+ "filesystem. There must be at least one "
+ "active OST for a client to start.\n");
GOTO(out_osc, err);
}
goto next;
}
- LCONSOLE_ERROR(0x152, "Unknown option '%s', won't mount.\n",
- s1);
+ LCONSOLE_ERROR_MSG(0x152, "Unknown option '%s', won't mount.\n",
+ s1);
RETURN(-EINVAL);
next:
rc = do_lcfg(MDCDEV, 0, LCFG_SETUP, mdt, niduuid, 0, 0);
if (rc < 0) {
- LCONSOLE_ERROR(0x153, "I couldn't establish a connection with "
- "the MDT. Check that the MDT host NID is "
- "correct and the networks are up.\n");
+ LCONSOLE_ERROR_MSG(0x153, "I couldn't establish a connection "
+ "with the MDT. Check that the MDT host NID "
+ "is correct and the networks are up.\n");
GOTO(out_detach, rc);
}
break;
}
case -EINVAL:
- LCONSOLE_ERROR(0x154, "%s: The configuration '%s' could not "
- "be read from the MDT '%s'. Make sure this "
- "client and the MDT are running compatible "
- "versions of Lustre.\n",
- obd->obd_name, profile, mdt);
+ LCONSOLE_ERROR_MSG(0x154, "%s: The configuration '%s' could not"
+ " be read from the MDT '%s'. Make sure this"
+ " client and the MDT are running compatible "
+ "versions of Lustre.\n",
+ obd->obd_name, profile, mdt);
/* fall through */
default:
- LCONSOLE_ERROR(0x155, "%s: The configuration '%s' could not "
- "be read from the MDT '%s'. This may be the "
- "result of communication errors between the "
- "client and the MDT, or if the MDT is not "
- "running.\n", obd->obd_name, profile, mdt);
+ LCONSOLE_ERROR_MSG(0x155, "%s: The configuration '%s' could not"
+ " be read from the MDT '%s'. This may be "
+ "the result of communication errors between "
+ "the client and the MDT, or if the MDT is "
+ "not running.\n", obd->obd_name, profile,
+ mdt);
break;
}
lprof = class_get_profile(profilenm);
if (lprof == NULL) {
- LCONSOLE_ERROR(0x156, "The client profile '%s' could not be "
- "read from the MGS. Does that filesystem "
- "exist?\n", profilenm);
+ LCONSOLE_ERROR_MSG(0x156, "The client profile '%s' could not be"
+ " read from the MGS. Does that filesystem "
+ "exist?\n", profilenm);
GOTO(out_free, err = -EINVAL);
}
CDEBUG(D_CONFIG, "Found profile %s: mdc=%s osc=%s\n", profilenm,
if (placed != real_count) {
/* This should never happen */
- LCONSOLE_ERROR(0x14e, "Failed to place all OSTs in the "
- "round-robin list (%d of %d).\n",
- placed, real_count);
+ LCONSOLE_ERROR_MSG(0x14e, "Failed to place all OSTs in the "
+ "round-robin list (%d of %d).\n",
+ placed, real_count);
for (i = 0; i < ost_count; i++) {
LCONSOLE(D_WARNING, "rr #%d ost idx=%d\n", i,
lov->lov_qos.lq_rr_array[i]);
GOTO(err_msd, rc);
}
if (strcmp(lsd->lsd_uuid, obd->obd_uuid.uuid) != 0) {
- LCONSOLE_ERROR(0x157, "Trying to start OBD %s using "
- "the wrong disk %s. Were the /dev/ "
- "assignments rearranged?\n",
- obd->obd_uuid.uuid, lsd->lsd_uuid);
+ LCONSOLE_ERROR_MSG(0x157, "Trying to start OBD %s using"
+ " the wrong disk %s. Were the /dev/ "
+ "assignments rearranged?\n",
+ obd->obd_uuid.uuid, lsd->lsd_uuid);
GOTO(err_msd, rc = -EINVAL);
}
/* COMPAT_146 */
rc = mgc_copy_llog(mgc, ctxt, lctxt, cld->cld_logname);
if (rcl || rc) {
if (mgc_llog_is_empty(mgc, lctxt, cld->cld_logname)) {
- LCONSOLE_ERROR(0x13a, "Failed to get MGS "
- "log %s and no local copy.\n",
- cld->cld_logname);
+ LCONSOLE_ERROR_MSG(0x13a, "Failed to get MGS "
+ "log %s and no local copy."
+ "\n", cld->cld_logname);
GOTO(out_pop, rc = -ENOTCONN);
}
LCONSOLE_WARN("Failed to get MGS log %s, using "
rc = mgs_check_index(obd, mti);
if (rc == 0) {
- LCONSOLE_ERROR(0x13b, "%s claims to have registered, but this "
- "MGS does not know about it. Assuming "
- "writeconf.\n", mti->mti_svname);
+ LCONSOLE_ERROR_MSG(0x13b, "%s claims to have registered, but "
+ "this MGS does not know about it. Assuming "
+ "writeconf.\n", mti->mti_svname);
mti->mti_flags |= LDD_F_WRITECONF;
rc = 1;
} else if (rc == -1) {
- LCONSOLE_ERROR(0x13c, "Client log %s-client has disappeared! "
- "Regenerating all logs.\n",
- mti->mti_fsname);
+ LCONSOLE_ERROR_MSG(0x13c, "Client log %s-client has "
+ "disappeared! Regenerating all logs.\n",
+ mti->mti_fsname);
mti->mti_flags |= LDD_F_WRITECONF;
rc = 1;
} else {
revoke at the end they will just update from where they left off. */
lockrc = mgs_get_cfg_lock(obd, mti->mti_fsname, &lockh);
if (lockrc != ELDLM_OK) {
- LCONSOLE_ERROR(0x13d, "%s: Can't signal other nodes to update "
- "their configuration (%d). Updating local logs "
- "anyhow; you might have to manually restart "
- "other nodes to get the latest configuration.\n",
- obd->obd_name, lockrc);
+ LCONSOLE_ERROR_MSG(0x13d, "%s: Can't signal other nodes to "
+ "update their configuration (%d). Updating "
+ "local logs anyhow; you might have to "
+ "manually restart other nodes to get the "
+ "latest configuration.\n",
+ obd->obd_name, lockrc);
}
OBD_FAIL_TIMEOUT(OBD_FAIL_MGS_SLOW_TARGET_REG, 10);
/* Remove after CMD */
if ((mti->mti_flags & LDD_F_SV_TYPE_MDT) &&
(mti->mti_stripe_index > 0)) {
- LCONSOLE_ERROR(0x13e, "MDT index must = 0 (until Clustered "
- "MetaData feature is ready.)\n");
+ LCONSOLE_ERROR_MSG(0x13e, "MDT index must = 0 (until Clustered "
+ "MetaData feature is ready.)\n");
mti->mti_stripe_index = 0;
}
if (mti->mti_stripe_index >= INDEX_MAP_SIZE * 8) {
- LCONSOLE_ERROR(0x13f, "Server %s requested index %d, but the"
- "max index is %d.\n",
- mti->mti_svname, mti->mti_stripe_index,
- INDEX_MAP_SIZE * 8);
+ LCONSOLE_ERROR_MSG(0x13f, "Server %s requested index %d, but the"
+ "max index is %d.\n",
+ mti->mti_svname, mti->mti_stripe_index,
+ INDEX_MAP_SIZE * 8);
RETURN(-ERANGE);
}
if (test_bit(mti->mti_stripe_index, imap)) {
if (mti->mti_flags & LDD_F_VIRGIN) {
- LCONSOLE_ERROR(0x140, "Server %s requested index %d, "
- "but that index is already in use\n",
- mti->mti_svname, mti->mti_stripe_index);
+ LCONSOLE_ERROR_MSG(0x140, "Server %s requested index "
+ "%d, but that index is already in "
+ "use\n", mti->mti_svname,
+ mti->mti_stripe_index);
RETURN(-EADDRINUSE);
} else {
CDEBUG(D_MGS, "Server %s updating index %d\n",
/* If the ost log already exists, that means that someone reformatted
the ost and it called target_add again. */
if (!mgs_log_is_empty(obd, mti->mti_svname)) {
- LCONSOLE_ERROR(0x141, "The config log for %s already exists, "
- "yet the server claims it never registered. "
- "It may have been reformatted, or the index "
- " changed. writeconf the MDT to regenerate "
- "all logs.\n", mti->mti_svname);
+ LCONSOLE_ERROR_MSG(0x141, "The config log for %s already "
+ "exists, yet the server claims it never "
+ "registered. It may have been reformatted, "
+ "or the index changed. writeconf the MDT to "
+ "regenerate all logs.\n", mti->mti_svname);
RETURN(-EALREADY);
}
/*
/* Verify that we know about this target */
if (mgs_log_is_empty(obd, mti->mti_svname)) {
- LCONSOLE_ERROR(0x142, "The target %s has not registered yet. "
- "It must be started before failnids can "
- "be added.\n", mti->mti_svname);
+ LCONSOLE_ERROR_MSG(0x142, "The target %s has not registered "
+ "yet. It must be started before failnids can"
+ " be added.\n", mti->mti_svname);
RETURN(-ENOENT);
}
} else if (mti->mti_flags & LDD_F_SV_TYPE_OST) {
/* COMPAT_146 */
if (fsdb->fsdb_flags & FSDB_OLDLOG14) {
- LCONSOLE_ERROR(0x143, "Failover NIDs cannot be added to"
- " upgraded client logs for %s. Consider "
- "updating the configuration with "
- "--writeconf.\n",
- mti->mti_svname);
+ LCONSOLE_ERROR_MSG(0x143, "Failover NIDs cannot be "
+ "added to upgraded client logs for "
+ "%s. Consider updating the "
+ "configuration with --writeconf.\n",
+ mti->mti_svname);
RETURN(-EINVAL);
}
name_create(&cliname, mti->mti_svname, "-osc");
/* Processed in mgs_write_log_ost */
if (class_match_param(ptr, PARAM_FAILMODE, NULL) == 0) {
if (mti->mti_flags & LDD_F_PARAM) {
- LCONSOLE_ERROR(0x169, "%s can only be changed "
- "with tunefs.lustre and "
- "--writeconf\n", ptr);
+ LCONSOLE_ERROR_MSG(0x169, "%s can only be "
+ "changed with tunefs.lustre "
+ "and --writeconf\n", ptr);
rc = -EPERM;
}
goto end_while;
/* active=0 means off, anything else means on */
int flag = (*tmp == '0') ? CM_EXCLUDE : 0;
if (!(mti->mti_flags & LDD_F_SV_TYPE_OST)) {
- LCONSOLE_ERROR(0x144, "%s: Only OSCs can be "
- "(de)activated.\n",
- mti->mti_svname);
+ LCONSOLE_ERROR_MSG(0x144, "%s: Only OSCs can be"
+ " (de)activated.\n",
+ mti->mti_svname);
rc = -EINVAL;
goto end_while;
}
name_destroy(&logname);
active_err:
if (rc) {
- LCONSOLE_ERROR(0x145, "Couldn't find %s in "
- "log (%d). No permanent changes were made "
- "to the config log.\n",
- mti->mti_svname, rc);
+ LCONSOLE_ERROR_MSG(0x145, "Couldn't find %s in "
+ "log (%d). No permanent "
+ "changes were made to the "
+ "config log.\n",
+ mti->mti_svname, rc);
if (fsdb->fsdb_flags & FSDB_OLDLOG14)
- LCONSOLE_ERROR(0x146, "This may be "
+ LCONSOLE_ERROR_MSG(0x146, "This may be "
"because the log is in the old 1.4 "
"style. Consider --writeconf to "
"update the logs.\n");
if (class_match_param(ptr, PARAM_LOV, NULL) == 0) {
CDEBUG(D_MGS, "lov param %s\n", ptr);
if (!(mti->mti_flags & LDD_F_SV_TYPE_MDT)) {
- LCONSOLE_ERROR(0x147, "LOV params must be set "
- "on the MDT, not %s. "
- "Ignoring.\n", mti->mti_svname);
+ LCONSOLE_ERROR_MSG(0x147, "LOV params must be "
+ "set on the MDT, not %s. "
+ "Ignoring.\n",
+ mti->mti_svname);
rc = 0;
goto end_while;
}
} else if (mti->mti_flags & LDD_F_SV_TYPE_OST) {
/* COMPAT_146 */
if (fsdb->fsdb_flags & FSDB_OLDLOG14) {
- LCONSOLE_ERROR(0x148, "Upgraded client "
- "logs for %s cannot be modified. "
+ LCONSOLE_ERROR_MSG(0x148, "Upgraded client"
+ " logs for %s cannot be modified. "
"Consider updating the "
"configuration with --writeconf\n",
mti->mti_svname);
"upgrading\n", mti->mti_stripe_index,
mti->mti_svname);
} else {
- LCONSOLE_ERROR(0x149, "Failed to find %s in the old "
- "client log. Apparently it is not part "
- "of this filesystem, or the old log is "
- "wrong.\nUse 'writeconf' on the MDT to "
- "force log regeneration.\n",
- mti->mti_svname);
+ LCONSOLE_ERROR_MSG(0x149, "Failed to find %s in the old"
+ " client log. Apparently it is not "
+ "part of this filesystem, or the old"
+ " log is wrong.\nUse 'writeconf' on "
+ "the MDT to force log regeneration."
+ "\n", mti->mti_svname);
/* Not in client log? Upgrade anyhow...*/
/* Argument against upgrading: reformat MDT,
upgrade OST, then OST will start but will be SKIPped
RETURN(rc);
if (fsdb->fsdb_flags & FSDB_LOG_EMPTY) {
- LCONSOLE_ERROR(0x14a, "The old client log %s-client is "
- "missing. Was tunefs.lustre successful?\n",
- mti->mti_fsname);
+ LCONSOLE_ERROR_MSG(0x14a, "The old client log %s-client is "
+ "missing. Was tunefs.lustre successful?\n",
+ mti->mti_fsname);
RETURN(-ENOENT);
}
if (mti->mti_flags & LDD_F_SV_TYPE_MDT) {
if (mgs_log_is_empty(obd, mti->mti_svname)) {
- LCONSOLE_ERROR(0x14b, "The old MDT log %s is missing. "
- "Was tunefs.lustre successful?\n",
- mti->mti_svname);
+ LCONSOLE_ERROR_MSG(0x14b, "The old MDT log %s is "
+ "missing. Was tunefs.lustre "
+ "successful?\n",
+ mti->mti_svname);
RETURN(-ENOENT);
}
}
if (!(fsdb->fsdb_flags & FSDB_OLDLOG14)) {
- LCONSOLE_ERROR(0x14c, "%s-client is supposedly an old log, "
- "but no old LOV or MDT was found. Consider "
- "updating the configuration with "
- "--writeconf.\n", mti->mti_fsname);
+ LCONSOLE_ERROR_MSG(0x14c, "%s-client is supposedly an old log, "
+ "but no old LOV or MDT was found. Consider "
+ "updating the configuration with "
+ "--writeconf.\n", mti->mti_fsname);
}
RETURN(rc);
}
}
if (!devname) {
- LCONSOLE_ERROR(0x14d, "No target specified: %s\n", param);
+ LCONSOLE_ERROR_MSG(0x14d, "No target specified: %s\n", param);
RETURN(-ENOSYS);
}
CDEBUG(D_INFO, "Loaded module '%s'\n", modname);
type = class_search_type(name);
} else {
- LCONSOLE_ERROR(0x158, "Can't load module '%s'\n",
- modname);
+ LCONSOLE_ERROR_MSG(0x158, "Can't load module '%s'\n",
+ modname);
}
}
#endif
*endp = '\0';
*nid = libcfs_str2nid(buf);
if (*nid == LNET_NID_ANY) {
- LCONSOLE_ERROR(0x159, "Can't parse NID '%s'\n", buf);
+ LCONSOLE_ERROR_MSG(0x159, "Can't parse NID '%s'\n", buf);
*endp = tmp;
return -EINVAL;
}
GOTO(out, err = 0);
}
case LCFG_SET_UPCALL: {
- LCONSOLE_ERROR(0x15a, "recovery upcall is deprecated\n");
+ LCONSOLE_ERROR_MSG(0x15a, "recovery upcall is deprecated\n");
/* COMPAT_146 Don't fail on old configs */
GOTO(out, err = 0);
}
lustre_cfg_free(lcfg);
if (rc == -EINVAL)
- LCONSOLE_ERROR(0x15b, "%s: The configuration from log '%s' "
- "failed (%d). Make sure this client and "
- "the MGS are running compatible versions of "
- "Lustre.\n",
- mgc->obd_name, logname, rc);
+ LCONSOLE_ERROR_MSG(0x15b, "%s: The configuration from log '%s' "
+ "failed (%d). Make sure this client and "
+ "the MGS are running compatible versions of "
+ "Lustre.\n",
+ mgc->obd_name, logname, rc);
if (rc)
- LCONSOLE_ERROR(0x15c, "%s: The configuration from log '%s' "
- "failed (%d). This may be the result of "
- "communication errors between this node and "
- "the MGS, a bad configuration, or other errors."
- " See the syslog for more information.\n",
- mgc->obd_name, logname, rc);
+ LCONSOLE_ERROR_MSG(0x15c, "%s: The configuration from log '%s' "
+ "failed (%d). This may be the result of "
+ "communication errors between this node and "
+ "the MGS, a bad configuration, or other "
+ "errors. See the syslog for more "
+ "information.\n", mgc->obd_name, logname,
+ rc);
/* class_obd_list(); */
RETURN(rc);
lmi = server_find_mount(LUSTRE_MGS_OBDNAME);
if (lmi) {
lsi = s2lsi(lmi->lmi_sb);
- LCONSOLE_ERROR(0x15d, "The MGS service was already started "
- "from server %s\n", lsi->lsi_ldd->ldd_svname);
+ LCONSOLE_ERROR_MSG(0x15d, "The MGS service was already started "
+ "from server %s\n", lsi->lsi_ldd->ldd_svname);
RETURN(-EALREADY);
}
server_deregister_mount(LUSTRE_MGS_OBDNAME);
if (rc)
- LCONSOLE_ERROR(0x15e, "Failed to start MGS '%s' (%d). Is the "
- "'mgs' module loaded?\n", LUSTRE_MGS_OBDNAME, rc);
+ LCONSOLE_ERROR_MSG(0x15e, "Failed to start MGS '%s' (%d). Is "
+ "the 'mgs' module loaded?\n",
+ LUSTRE_MGS_OBDNAME, rc);
RETURN(rc);
}
CERROR("Required registration failed for %s: %d\n",
lsi->lsi_ldd->ldd_svname, rc);
if (rc == -EIO) {
- LCONSOLE_ERROR(0x15f, "Communication error with the "
- "MGS. Is the MGS running?\n");
+ LCONSOLE_ERROR_MSG(0x15f, "Communication error with the"
+ " MGS. Is the MGS running?\n");
}
GOTO(out_mgc, rc);
}
if (rc == -EINVAL) {
- LCONSOLE_ERROR(0x160, "The MGS is refusing to allow this "
- "server (%s) to start. Please see messages on"
- " the MGS node.\n", lsi->lsi_ldd->ldd_svname);
+ LCONSOLE_ERROR_MSG(0x160, "The MGS is refusing to allow this "
+ "server (%s) to start. Please see messages "
+ "on the MGS node.\n",
+ lsi->lsi_ldd->ldd_svname);
GOTO(out_mgc, rc);
}
lsi->lsi_lmd->lmd_dev);
if (class_name2obd(lsi->lsi_ldd->ldd_svname)) {
- LCONSOLE_ERROR(0x161, "The target named %s is already running."
- " Double-mount may have compromised the disk "
- "journal.\n", lsi->lsi_ldd->ldd_svname);
+ LCONSOLE_ERROR_MSG(0x161, "The target named %s is already "
+ "running. Double-mount may have compromised "
+ "the disk journal.\n",
+ lsi->lsi_ldd->ldd_svname);
unlock_mntput(mnt);
lustre_put_lsi(sb);
GOTO(out, rc = -EALREADY);
LASSERT(lmd);
if (!options) {
- LCONSOLE_ERROR(0x162, "Missing mount data: check that "
- "/sbin/mount.lustre is installed.\n");
+ LCONSOLE_ERROR_MSG(0x162, "Missing mount data: check that "
+ "/sbin/mount.lustre is installed.\n");
RETURN(-EINVAL);
}
/* Options should be a string - try to detect old lmd data */
if ((raw->lmd_magic & 0xffffff00) == (LMD_MAGIC & 0xffffff00)) {
- LCONSOLE_ERROR(0x163, "You're using an old version of "
- "/sbin/mount.lustre. Please install version "
- "%s\n", LUSTRE_VERSION_STRING);
+ LCONSOLE_ERROR_MSG(0x163, "You're using an old version of "
+ "/sbin/mount.lustre. Please install "
+ "version %s\n", LUSTRE_VERSION_STRING);
RETURN(-EINVAL);
}
lmd->lmd_magic = LMD_MAGIC;
}
if (!devname) {
- LCONSOLE_ERROR(0x164, "Can't find the device name "
- "(need mount option 'device=...')\n");
+ LCONSOLE_ERROR_MSG(0x164, "Can't find the device name "
+ "(need mount option 'device=...')\n");
goto invalid;
}
if (lmd_is_client(lmd)) {
CDEBUG(D_MOUNT, "Mounting client %s\n", lmd->lmd_profile);
if (!client_fill_super) {
- LCONSOLE_ERROR(0x165, "Nothing registered for client "
- "mount! Is the 'lustre' module loaded?\n");
+ LCONSOLE_ERROR_MSG(0x165, "Nothing registered for "
+ "client mount! Is the 'lustre' "
+ "module loaded?\n");
rc = -ENODEV;
} else {
rc = lustre_start_mgc(sb);
GOTO(err_fsd, rc);
}
if (strcmp(fsd->lsd_uuid, obd->obd_uuid.uuid) != 0) {
- LCONSOLE_ERROR(0x134, "Trying to start OBD %s using "
- "the wrong disk %s. Were the /dev/ "
- "assignments rearranged?\n",
- obd->obd_uuid.uuid, fsd->lsd_uuid);
+ LCONSOLE_ERROR_MSG(0x134, "Trying to start OBD %s using"
+ " the wrong disk %s. Were the /dev/ "
+ "assignments rearranged?\n",
+ obd->obd_uuid.uuid, fsd->lsd_uuid);
GOTO(err_fsd, rc = -EINVAL);
}
mount_count = le64_to_cpu(fsd->lsd_mount_count);
lustre_cfg_string(lcfg, 1), option);
if (IS_ERR(mnt)) {
rc = PTR_ERR(mnt);
- LCONSOLE_ERROR(0x135, "Can't mount disk %s (%d)\n",
- lustre_cfg_string(lcfg, 1), rc);
+ LCONSOLE_ERROR_MSG(0x135, "Can't mount disk %s (%d)\n",
+ lustre_cfg_string(lcfg, 1), rc);
RETURN(rc);
}
filter_update_server_data(exp->exp_obd,
filter->fo_rcvd_filp, lsd, 1);
} else if (index != data->ocd_index) {
- LCONSOLE_ERROR(0x136, "Connection from %s to index %u "
- "doesn't match actual OST index %u in "
- "last_rcvd file, bad configuration?\n",
- obd_export_nid2str(exp), index,
- data->ocd_index);
+ LCONSOLE_ERROR_MSG(0x136, "Connection from %s to index "
+ "%u doesn't match actual OST index "
+ "%u in last_rcvd file, bad "
+ "configuration?\n",
+ obd_export_nid2str(exp), index,
+ data->ocd_index);
RETURN(-EBADF);
}
}
msg = "changed in transit AND doesn't match the original - "
"likely false positive due to mmap IO (bug 11742)";
- LCONSOLE_ERROR(0x132, "BAD WRITE CHECKSUM: %s: from %s inum "LPU64"/"LPU64
- " object "LPU64"/"LPU64" extent ["LPU64"-"LPU64"]\n",
- msg, libcfs_nid2str(peer->nid),
- oa->o_valid & OBD_MD_FLFID ? oa->o_fid : (__u64)0,
- oa->o_valid & OBD_MD_FLFID ? oa->o_generation : (__u64)0,
- oa->o_id,
- oa->o_valid & OBD_MD_FLGROUP ? oa->o_gr : (__u64)0,
- pga[0]->off,
- pga[page_count-1]->off + pga[page_count-1]->count - 1);
+ LCONSOLE_ERROR_MSG(0x132, "BAD WRITE CHECKSUM: %s: from %s inum "
+ LPU64"/"LPU64" object "LPU64"/"LPU64" extent "
+ "["LPU64"-"LPU64"]\n",
+ msg, libcfs_nid2str(peer->nid),
+ oa->o_valid & OBD_MD_FLFID ? oa->o_fid : (__u64)0,
+ oa->o_valid & OBD_MD_FLFID ? oa->o_generation :
+ (__u64)0,
+ oa->o_id,
+ oa->o_valid & OBD_MD_FLGROUP ? oa->o_gr : (__u64)0,
+ pga[0]->off,
+ pga[page_count-1]->off + pga[page_count-1]->count - 1);
CERROR("original client csum %x, server csum %x, client csum now %x\n",
client_cksum, server_cksum, new_cksum);
"but please tell CFS.\n",
libcfs_nid2str(peer->nid));
} else if (server_cksum != client_cksum) {
- LCONSOLE_ERROR(0x133, "%s: BAD READ CHECKSUM: from %s"
- "%s%s inum "LPU64"/"LPU64" object "LPU64
- "/"LPU64" extent ["LPU64"-"LPU64"]\n",
- req->rq_import->imp_obd->obd_name,
- libcfs_nid2str(peer->nid),
- via, router,
- body->oa.o_valid & OBD_MD_FLFID ?
+ LCONSOLE_ERROR_MSG(0x133, "%s: BAD READ CHECKSUM: from "
+ "%s%s%s inum "LPU64"/"LPU64" object "
+ LPU64"/"LPU64" extent "
+ "["LPU64"-"LPU64"]\n",
+ req->rq_import->imp_obd->obd_name,
+ libcfs_nid2str(peer->nid),
+ via, router,
+ body->oa.o_valid & OBD_MD_FLFID ?
body->oa.o_fid : (__u64)0,
- body->oa.o_valid & OBD_MD_FLFID ?
+ body->oa.o_valid & OBD_MD_FLFID ?
body->oa.o_generation :(__u64)0,
- body->oa.o_id,
- body->oa.o_valid & OBD_MD_FLGROUP ?
+ body->oa.o_id,
+ body->oa.o_valid & OBD_MD_FLGROUP ?
body->oa.o_gr : (__u64)0,
- aa->aa_ppga[0]->off,
- aa->aa_ppga[aa->aa_page_count-1]->off +
- aa->aa_ppga[aa->aa_page_count-1]->count -
+ aa->aa_ppga[0]->off,
+ aa->aa_ppga[aa->aa_page_count-1]->off +
+ aa->aa_ppga[aa->aa_page_count-1]->count -
1);
CERROR("client %x, server %x\n",
client_cksum, server_cksum);
router = libcfs_nid2str(desc->bd_sender);
}
- LCONSOLE_ERROR(0x168, "%s: BAD WRITE CHECKSUM: %s from %s%s%s "
- "inum "LPU64"/"LPU64" object "LPU64"/"LPU64
- " extent ["LPU64"-"LPU64"]\n",
- req->rq_export->exp_obd->obd_name, msg,
- libcfs_id2str(req->rq_peer),
- via, router,
- body->oa.o_valid & OBD_MD_FLFID ?
+ LCONSOLE_ERROR_MSG(0x168, "%s: BAD WRITE CHECKSUM: %s from %s"
+ "%s%s inum "LPU64"/"LPU64" object "LPU64"/"
+ LPU64" extent ["LPU64"-"LPU64"]\n",
+ req->rq_export->exp_obd->obd_name, msg,
+ libcfs_id2str(req->rq_peer),
+ via, router,
+ body->oa.o_valid & OBD_MD_FLFID ?
body->oa.o_fid : (__u64)0,
- body->oa.o_valid & OBD_MD_FLFID ?
+ body->oa.o_valid & OBD_MD_FLFID ?
body->oa.o_generation :(__u64)0,
- body->oa.o_id,
- body->oa.o_valid & OBD_MD_FLGROUP ?
+ body->oa.o_id,
+ body->oa.o_valid & OBD_MD_FLGROUP ?
body->oa.o_gr : (__u64)0,
- pp_rnb[0].offset,
- pp_rnb[npages-1].offset+pp_rnb[npages-1].len-1);
+ pp_rnb[0].offset,
+ pp_rnb[npages-1].offset+pp_rnb[npages-1].len
+ - 1 );
CERROR("client csum %x, original server csum %x, "
"server csum now %x\n",
client_cksum, server_cksum, new_cksum);
err = lustre_msg_get_status(req->rq_repmsg);
if (lustre_msg_get_type(req->rq_repmsg) == PTL_RPC_MSG_ERR) {
- LCONSOLE_ERROR(0x011, "an error ocurred while communicating "
- "with %s The %s operation failed with %d",
- obd_export_nid2str(req->rq_export),
- ll_opcode2str(lustre_msg_get_opc(req->rq_reqmsg)),
- err);
+ LCONSOLE_ERROR_MSG(0x011, "an error ocurred while communicating"
+ " with %s The %s operation failed with %d",
+ obd_export_nid2str(req->rq_export),
+ ll_opcode2str(lustre_msg_get_opc(req->rq_reqmsg)),
+ err);
RETURN(err < 0 ? err : -EINVAL);
}
imp->imp_obd->obd_name, target_len, target_start,
libcfs_nid2str(imp->imp_connection->c_peer.nid));
} else {
- LCONSOLE_ERROR(0x166, "%s: Connection to service %.*s "
- "via nid %s was lost; in progress operations "
- "using this service will fail.\n",
- imp->imp_obd->obd_name, target_len, target_start,
+ LCONSOLE_ERROR_MSG(0x166, "%s: Connection to service "
+ "%.*s via nid %s was lost; in progress "
+ "operations using this service will fail.\n",
+ imp->imp_obd->obd_name, target_len, target_start,
libcfs_nid2str(imp->imp_connection->c_peer.nid));
}
IMPORT_SET_STATE_NOLOCK(imp, LUSTRE_IMP_DISCON);
/* Actually servers are only supposed to refuse
connection from liblustre clients, so we should
never see this from VFS context */
- LCONSOLE_ERROR(0x16a, "Server %s version "
+ LCONSOLE_ERROR_MSG(0x16a, "Server %s version "
"(%d.%d.%d.%d)"
" refused connection from this client "
"with an incompatible version (%s). "
/* Don't care about MGC eviction */
if (strcmp(imp->imp_obd->obd_type->typ_name,
LUSTRE_MGC_NAME) != 0) {
- LCONSOLE_ERROR(0x167, "This client was evicted by "
- "%.*s; in progress operations using "
- "this service will fail.\n",
- target_len, target_start);
+ LCONSOLE_ERROR_MSG(0x167, "This client was evicted by "
+ "%.*s; in progress operations using "
+ "this service will fail.\n",
+ target_len, target_start);
}
CDEBUG(D_HA, "evicted from %s@%s; invalidating\n",
obd2cli_tgt(imp->imp_obd),