for (i = 0; i < LDLM_NUM_THREADS; i++) {
char name[32];
- sprintf(name, "lustre_dlm_%2d", i);
+ sprintf(name, "lustre_dlm_%02d", i);
rc = ptlrpc_start_thread(obddev, ldlm->ldlm_service, name);
if (rc) {
CERROR("cannot start LDLM thread #%d: rc %d\n", i, rc);
for (i = 0; i < MDS_NUM_THREADS; i++) {
char name[32];
- sprintf(name, "lustre_MDS_%2d", i);
+ sprintf(name, "lustre_MDS_%02d", i);
rc = ptlrpc_start_thread(obddev, mds->mds_service, name);
if (rc) {
CERROR("cannot start MDS thread #%d: rc %d\n", i, rc);
RETURN(0);
-
-
err_thread:
ptlrpc_stop_all_threads(mds->mds_service);
err_svc:
last_rcvd = le64_to_cpu(mcd->mcd_last_rcvd);
- if (last_rcvd && (last_mount - le64_to_cpu(mcd->mcd_mount_count)
+ if (last_rcvd && (last_mount - le64_to_cpu(mcd->mcd_mount_count)
< MDS_MOUNT_RECOV)) {
struct obd_export *export = class_new_export(obddev);
if (!export) {
for (i = 0; i < OST_NUM_THREADS; i++) {
char name[32];
- sprintf(name, "lustre_ost_%2d", i);
+ sprintf(name, "lustre_ost_%02d", i);
err = ptlrpc_start_thread(obddev, ost->ost_service, name);
if (err) {
CERROR("error starting thread #%d: rc %d\n", i, err);