RETURN(rc);
}
+static int
+seq_proc_read_server(char *page, char **start, off_t off,
+ int count, int *eof, void *data)
+{
+ struct lu_client_seq *seq = (struct lu_client_seq *)data;
+ struct client_obd *cli = &seq->seq_exp->exp_obd->u.cli;
+ int rc;
+ ENTRY;
+
+ LASSERT(seq != NULL);
+ rc = snprintf(page, count, "%s\n",
+ cli->cl_target_uuid.uuid);
+ RETURN(rc);
+}
+
struct lprocfs_vars seq_server_proc_list[] = {
{ "space", seq_proc_read_space, seq_proc_write_space, NULL },
{ "super", seq_proc_read_super, seq_proc_write_super, NULL },
struct lprocfs_vars seq_client_proc_list[] = {
{ "range", seq_proc_read_range, seq_proc_write_range, NULL },
+ { "server", seq_proc_read_server, NULL, NULL },
{ "seq_width", seq_proc_read_seq_width, seq_proc_write_seq_width, NULL },
{ NULL }};
#endif
fld->fld_hash = &fld_hash[hash];
fld->fld_count = 0;
- CDEBUG(D_INFO|D_WARNING, "Client FLD initialized, using \"%s\" hash\n",
+ CDEBUG(D_INFO|D_WARNING, "Client FLD, using \"%s\" hash\n",
fld->fld_hash->fh_name);
RETURN(rc);
}
};
struct lu_server_fld {
- struct proc_dir_entry *fld_proc_entry;
+ cfs_proc_dir_entry_t *fld_proc_entry;
+ cfs_proc_dir_entry_t *fld_proc_dir;
struct ptlrpc_service *fld_service;
struct dt_device *fld_dt;
struct dt_object *fld_obj;
- struct lu_fid fld_fid; /* used during initialization */
+ struct lu_fid fld_fid;
};
struct lu_client_fld {
- struct proc_dir_entry *fld_proc_entry;
+ cfs_proc_dir_entry_t *fld_proc_dir;
struct list_head fld_exports;
struct lu_fld_hash *fld_hash;
int fld_count;