};
lprocfs_vars_t obd_var_nm_1[]= {
-
{"num_ops", lprocfs_ll_rd, lprocfs_ll_wr},
{"min_time", lprocfs_ll_rd, lprocfs_ll_wr},
{"max_time", lprocfs_ll_rd, lprocfs_ll_wr},
};
-/*
- * MDC Spcific namespace for lprocFS
+/*
+ * MDC Spcific namespace for lprocFS
*/
-char* mdc_dir_nm_1[]= {
+char *mdc_dir_nm_1[]= {
"reint",
"getstatus",
"getattr",
"link",
"rename",
0
-
};
/*
* Create the MDC groupings
*/
-
lprocfs_group_t lprocfs_mdc_nm[]= {
{obd_dir_nm_1, obd_var_nm_1, e_generic},
/*
* MDS Device Groupings
*/
-
-char* mds_dir_nm_1[]={
+char *mds_dir_nm_1[]={
"getstatus",
"connect",
"disconnect_callback",
0
};
-char* mds_dir_nm_2[]={
+char *mds_dir_nm_2[]={
"mstatfs",
0
-
};
lprocfs_group_t lprocfs_mds_nm[]={
{obd_dir_nm_1, obd_var_nm_1, e_generic},
{mds_dir_nm_1, obd_var_nm_1, e_generic},
- {mds_dir_nm_2, mds_var_nm_2, e_specific},
+ {mds_dir_nm_2, mds_var_nm_2, e_specific},
{0, 0, 0}
};
-/*
+/*
* OSC Namespace
*/
lprocfs_group_t lprocfs_osc_nm[]={
{obd_dir_nm_1, obd_var_nm_1, e_generic},
- {osc_dir_nm_1, obd_var_nm_1, e_generic},
+ {osc_dir_nm_1, obd_var_nm_1, e_generic},
{0, 0, 0}
};
* those attributes that are missing in osc_dir_namespace.
*/
-char* ost_lov_obdfilter_dir_nm_1[]={
+char *ost_lov_obdfilter_dir_nm_1[]={
"getinfo",
0
};
-char* ost_lov_obdfilter_dir_nm_2[]={
+
+char *ost_lov_obdfilter_dir_nm_2[]={
"ostatfs",
0
-};
+};
lprocfs_vars_t ost_lov_obdfilter_var_nm_2[]={
{"f_type", rd_other, wr_other},
"locks/matches",
0
};
-
lprocfs_vars_t ldlm_var_nm_1[]= {
-
{"num_total", lprocfs_ll_rd, lprocfs_ll_wr},
{"num_zerolatency", lprocfs_ll_rd, lprocfs_ll_wr},
{"num_zerolatency_inflight", lprocfs_ll_rd, lprocfs_ll_wr},
lprocfs_group_t lprocfs_ldlm_nm[]={
{obd_dir_nm_1, obd_var_nm_1, e_generic},
- {ldlm_dir_nm_1, ldlm_var_nm_1, e_generic},
+ {ldlm_dir_nm_1, ldlm_var_nm_1, e_generic},
{0, 0, 0}
};
{"portal_kmemory", lprocfs_ll_rd, lprocfs_ll_wr},
{"0", 0, 0}
};
+
char* ptlrpc_dir_nm_2[] = {
"network",
0
};
-
+
lprocfs_vars_t ptlrpc_var_nm_2[] = {
{"type", rd_string, wr_string},
{"mtu", lprocfs_ll_rd, lprocfs_ll_wr},
lprocfs_group_t lprocfs_ptlrpc_nm[]={
{obd_dir_nm_1, obd_var_nm_1, e_generic},
{ptlrpc_dir_nm_1, ptlrpc_var_nm_1, e_generic},
- {ptlrpc_dir_nm_2, ptlrpc_var_nm_2, e_specific},
+ {ptlrpc_dir_nm_2, ptlrpc_var_nm_2, e_specific},
{0, 0, 0}
};
{"ost", lprocfs_ost_lov_obdf_nm, sizeof(struct lprofiler_gen)},
{"lov", lprocfs_ost_lov_obdf_nm, sizeof(struct lprofiler_gen)},
{"obdfilter", lprocfs_ost_lov_obdf_nm, sizeof(struct lprofiler_gen)},
+ {"obdecho", lprocfs_ost_lov_obdf_nm, sizeof(struct lprofiler_gen)},
{"ldlm", lprocfs_ldlm_nm, sizeof(struct lprofiler_ldlm)},
{"ptlrpc", lprocfs_ptlrpc_nm, sizeof(struct lprofiler_ptlrpc)},
{"0", 0, 0}
-
};
#else
int len = 0;
struct obd_ioctl_data *data;
struct obd_device *obd = filp->private_data;
-
+
struct lustre_handle conn;
int rw = OBD_BRW_READ;
int err = 0;
serialised = 1;
break;
}
-
+
if (!obd && cmd != OBD_IOC_DEVICE && cmd != TCGETS &&
cmd != OBD_IOC_LIST &&
cmd != OBD_IOC_NAME2DEV && cmd != OBD_IOC_NEWDEV) {
}
memcpy(obd->obd_uuid, data->ioc_inlbuf3, len);
}
- /*
- * Get the LprocFS namespace for this device class
- */
-
- l_idx=lprocfs_get_nm(data->ioc_inlbuf1, \
- obd_nm);
-
- if(l_idx<0){
+ /* Get the LprocFS namespace for this device class */
+ l_idx = lprocfs_get_nm(data->ioc_inlbuf1, obd_nm);
+ if (l_idx < 0) {
CERROR("Non-existent device class"
"or proc/lustre not compiled \n");
-
} else {
- lprocfs_reg_dev(obd,\
- obd_nm[l_idx].obd_names,\
- obd_nm[l_idx].cntr_blk_sz);
+ lprocfs_reg_dev(obd, obd_nm[l_idx].obd_names,
+ obd_nm[l_idx].cntr_blk_sz);
}
-
MOD_INC_USE_COUNT;
}
OBD_FREE(obd->obd_name, strlen(obd->obd_name)+1);
obd->obd_name = NULL;
}
- /*
+ /*
if (obd->obd_proc_entry)
proc_lustre_release_obd_device(obd);
*/