LPROCFS_DIR_INDEX(mds, reint_recreate),
};
+struct namespace_index dir_mdt_index[] = {
+ LPROCFS_DIR_INDEX(mdt, mgmt_setup),
+ LPROCFS_DIR_INDEX(mdt, mgmt_cleanup),
+ LPROCFS_DIR_INDEX(mdt, mgmt_connect),
+ LPROCFS_DIR_INDEX(mdt, mgmt_disconnect),
+};
+
struct namespace_index dir_osc_index[] = {
LPROCFS_DIR_INDEX(osc, mgmt_setup),
LPROCFS_DIR_INDEX(osc, mgmt_cleanup),
LPROCFS_CNTR_INDEX(mds, num_ops),
};
+struct namespace_index prof_mdt_index[]= {
+ LPROCFS_CNTR_INDEX(mds, min_time),
+ LPROCFS_CNTR_INDEX(mds, max_time),
+ LPROCFS_CNTR_INDEX(mds, sum_time),
+ LPROCFS_CNTR_INDEX(mds, num_ops),
+};
+
struct namespace_index prof_osc_index[]= {
LPROCFS_CNTR_INDEX(osc, min_time),
LPROCFS_CNTR_INDEX(osc, max_time),
struct groupspace_index class_index[] = {
LPROCFS_GROUP_CREATE(mdc),
LPROCFS_GROUP_CREATE(mds),
+ LPROCFS_GROUP_CREATE(mdt),
LPROCFS_GROUP_CREATE(osc),
LPROCFS_GROUP_CREATE(ost),
LPROCFS_GROUP_CREATE(lov),
return LPROCFS_FAILURE;
}
-
/* Obtain the class-array index */
class_array_index = lprocfs_getclass_idx(class_index,
device->obd_type->typ_name);
if (class_array_index == LPROCFS_FAILURE) {
- CERROR("!! Could not find class !! \n");
+ CERROR("Could not find class for %s\n",
+ device->obd_type->typ_name);
return LPROCFS_FAILURE;
}
{
struct proc_dir_entry* temp;
- CDEBUG(D_OTHER, "LPROCFS removing device = %s\n", \
- device->obd_name);
+ CDEBUG(D_OTHER, "LPROCFS removing device = %s\n", device->obd_name);
if (!device) {
CDEBUG(D_OTHER, "! LProcfs: Null pointer !\n");
return LPROCFS_FAILURE;
}
- temp = lprocfs_bfs_srch(proc_lustre_dev_root->subdir, \
- device->obd_name);
+ temp = lprocfs_bfs_srch(proc_lustre_dev_root->subdir, device->obd_name);
if (temp == 0) {
- CERROR("!! No root obtained, device does not exist !!\n");
+ CERROR("Device %s not in lprocfs\n", device->obd_name);
return LPROCFS_FAILURE;
}