+{
+ int rc = 0;
+
-+ printk(KERN_INFO "init dynlocks cache\n");
++ /* printk(KERN_INFO "init dynlocks cache\n"); */
+ dynlock_cachep = kmem_cache_create("dynlock_cache",
+ sizeof(struct dynlock_handle),
+ 0,
+
+void __exit dynlock_cache_exit(void)
+{
-+ printk(KERN_INFO "exit dynlocks cache\n");
++ /* printk(KERN_INFO "exit dynlocks cache\n"); */
+ kmem_cache_destroy(dynlock_cachep);
+}
+
+{
+ int rc = 0;
+
-+ printk(KERN_INFO "init dynlocks cache\n");
++ /* printk(KERN_INFO "init dynlocks cache\n"); */
+ dynlock_cachep = kmem_cache_create("dynlock_cache",
+ sizeof(struct dynlock_handle),
+ 0,
+
+void __exit dynlock_cache_exit(void)
+{
-+ printk(KERN_INFO "exit dynlocks cache\n");
++ /* printk(KERN_INFO "exit dynlocks cache\n"); */
+ kmem_cache_destroy(dynlock_cachep);
+}
+
+{
+ int rc = 0;
+
-+ printk(KERN_INFO "init dynlocks cache\n");
++ /* printk(KERN_INFO "init dynlocks cache\n"); */
+ dynlock_cachep = kmem_cache_create("dynlock_cache",
+ sizeof(struct dynlock_handle),
+ 0,
+
+void __exit dynlock_cache_exit(void)
+{
-+ printk(KERN_INFO "exit dynlocks cache\n");
++ /* printk(KERN_INFO "exit dynlocks cache\n"); */
+ kmem_cache_destroy(dynlock_cachep);
+}
+
}
out:
- CDEBUG(D_CONSOLE, "Register global MR array, MR size: "
- LPX64", array size: %d\n",
- hdev->ibh_mr_size, hdev->ibh_nmrs);
+ if (hdev->ibh_mr_size != ~0ULL || hdev->ibh_nmrs != 1)
+ LCONSOLE_INFO("Register global MR array, MR size: "
+ LPX64", array size: %d\n",
+ hdev->ibh_mr_size, hdev->ibh_nmrs);
return 0;
}
libcfs_sock_release(lnet_acceptor_state.pta_sock);
lnet_acceptor_state.pta_sock = NULL;
- LCONSOLE(0, "Acceptor stopping\n");
+ CDEBUG(D_NET, "Acceptor stopping\n");
/* unblock lnet_acceptor_stop() */
cfs_mt_complete(&lnet_acceptor_state.pta_signal);
if (!target || target->obd_stopping || !target->obd_set_up) {
LCONSOLE_ERROR_MSG(0x137, "UUID '%s' is not available "
- " for connect (%s)\n", str,
+ "for connect (%s)\n", str,
!target ? "no target" :
(target->obd_stopping ? "stopping" :
"not set up"));
env.le_ctx.lc_thread = thread;
thread->t_data = NULL;
- CERROR("%s: started recovery thread pid %d\n", obd->obd_name,
+ CDEBUG(D_HA, "%s: started recovery thread pid %d\n", obd->obd_name,
cfs_curproc_pid());
trd->trd_processing_task = cfs_curproc_pid();
CFS_INIT_LIST_HEAD(&capa_list[i]);
#endif
-#ifdef CRAY_XT3
LCONSOLE_INFO("Lustre: Build Version: "BUILD_VERSION"\n");
-#else
- LCONSOLE_INFO("OBD class driver, http://wiki.whamcloud.com/\n");
- LCONSOLE_INFO(" Lustre Version: "LUSTRE_VERSION_STRING"\n");
- LCONSOLE_INFO(" Build Version: "BUILD_VERSION"\n");
-#endif
cfs_spin_lock_init(&obd_types_lock);
obd_zombie_impexp_init();
{
int result;
- CDEBUG(D_CONSOLE, "Lustre LU module (%p).\n", &lu_keys);
+ CDEBUG(D_INFO, "Lustre LU module (%p).\n", &lu_keys);
result = lu_ref_global_init();
if (result != 0)
O_dentry = simple_mkdir(cfs_fs_pwd(current->fs), obd->u.obt.obt_vfsmnt,
"O", 0700, 1);
- CDEBUG(D_INODE, "got/created O: %p\n", O_dentry);
+ CDEBUG(D_INODE, "%s: got/created O: %p\n", obd->obd_name, O_dentry);
if (IS_ERR(O_dentry)) {
rc = PTR_ERR(O_dentry);
- CERROR("cannot open/create O: rc = %d\n", rc);
+ CERROR("%s: cannot open/create O: rc = %d\n", obd->obd_name,rc);
GOTO(cleanup, rc);
}
filter->fo_dentry_O = O_dentry;
* clients because they may send create/destroy for any group -bzzz */
filp = filp_open("LAST_GROUP", O_CREAT | O_RDWR, 0700);
if (IS_ERR(filp)) {
- CERROR("cannot create LAST_GROUP: rc = %ld\n", PTR_ERR(filp));
+ CERROR("%s: cannot create LAST_GROUP: rc = %ld\n",
+ obd->obd_name, PTR_ERR(filp));
GOTO(cleanup, rc = PTR_ERR(filp));
}
cleanup_phase = 2; /* filp */
rc = fsfilt_read_record(obd, filp, &last_group, sizeof(__u32), &off);
if (rc) {
- CDEBUG(D_INODE, "error reading LAST_GROUP: rc %d\n", rc);
+ CERROR("%s: error reading LAST_GROUP: rc %d\n",
+ obd->obd_name, rc);
GOTO(cleanup, rc);
}
if (off == 0)
last_group = FID_SEQ_OST_MDT0;
- CWARN("%s: initialize groups [%u,%u]\n", obd->obd_name,
- FID_SEQ_OST_MDT0, last_group);
+ CDEBUG(D_INODE, "%s: initialize group %u (max %u)\n", obd->obd_name,
+ FID_SEQ_OST_MDT0, last_group);
filter->fo_committed_group = last_group;
rc = filter_read_groups(obd, last_group, 1);
if (rc)
struct filter_subdirs *subdirs;
if (group >= filter->fo_group_count) /* FIXME: object groups */
- return ERR_PTR(-EBADF);
+ return ERR_PTR(-EBADF);
if (!fid_seq_is_mdt(group) || filter->fo_subdir_count == 0)
return filter->fo_dentry_O_groups[group];
sptlrpc_import_sec_adapt_inplace(imp, sec, &sf);
GOTO(out, rc);
}
- } else {
- CWARN("import %s->%s netid %x: select flavor %s\n",
- imp->imp_obd->obd_name,
- obd_uuid2str(&conn->c_remote_uuid),
- LNET_NIDNET(conn->c_self),
- sptlrpc_flavor2name(&sf, str, sizeof(str)));
+ } else if (sptlrpc_flavor2name_base(sf.sf_rpc) != SPTLRPC_FLVR_NULL) {
+ LCONSOLE_INFO("import %s->%s netid %x: select flavor %s\n",
+ imp->imp_obd->obd_name,
+ obd_uuid2str(&conn->c_remote_uuid),
+ LNET_NIDNET(conn->c_self),
+ sptlrpc_flavor2name(&sf, str, sizeof(str)));
}
cfs_mutex_down(&imp->imp_sec_mutex);