#endif
struct obd_device *obd_devs[MAX_OBD_DEVICES];
+EXPORT_SYMBOL(obd_devs);
cfs_list_t obd_types;
cfs_rwlock_t obd_dev_lock = CFS_RW_LOCK_UNLOCKED;
/* The following are visible and mutable through /proc/sys/lustre/. */
unsigned int obd_debug_peer_on_timeout;
+EXPORT_SYMBOL(obd_debug_peer_on_timeout);
unsigned int obd_dump_on_timeout;
+EXPORT_SYMBOL(obd_dump_on_timeout);
unsigned int obd_dump_on_eviction;
+EXPORT_SYMBOL(obd_dump_on_eviction);
unsigned int obd_max_dirty_pages = 256;
+EXPORT_SYMBOL(obd_max_dirty_pages);
+cfs_atomic_t obd_dirty_pages;
+EXPORT_SYMBOL(obd_dirty_pages);
unsigned int obd_timeout = OBD_TIMEOUT_DEFAULT; /* seconds */
+EXPORT_SYMBOL(obd_timeout);
unsigned int ldlm_timeout = LDLM_TIMEOUT_DEFAULT; /* seconds */
+EXPORT_SYMBOL(ldlm_timeout);
/* Adaptive timeout defs here instead of ptlrpc module for /proc/sys/ access */
unsigned int at_min = 0;
+EXPORT_SYMBOL(at_min);
unsigned int at_max = 600;
+EXPORT_SYMBOL(at_max);
unsigned int at_history = 600;
+EXPORT_SYMBOL(at_history);
int at_early_margin = 5;
+EXPORT_SYMBOL(at_early_margin);
int at_extra = 30;
+EXPORT_SYMBOL(at_extra);
-cfs_atomic_t obd_dirty_pages;
cfs_atomic_t obd_dirty_transit_pages;
+EXPORT_SYMBOL(obd_dirty_transit_pages);
char obd_jobid_var[JOBSTATS_JOBID_VAR_MAX_LEN + 1] = JOBSTATS_DISABLE;
EXPORT_SYMBOL(obd_jobid_var);
RETURN(err);
} /* class_handle_ioctl */
-
-
#ifdef __KERNEL__
extern cfs_psdev_t obd_psdev;
#else
void *obd_psdev = NULL;
#endif
-EXPORT_SYMBOL(obd_devs);
-EXPORT_SYMBOL(obd_debug_peer_on_timeout);
-EXPORT_SYMBOL(obd_dump_on_timeout);
-EXPORT_SYMBOL(obd_dump_on_eviction);
-EXPORT_SYMBOL(obd_timeout);
-EXPORT_SYMBOL(ldlm_timeout);
-EXPORT_SYMBOL(obd_max_dirty_pages);
-EXPORT_SYMBOL(obd_dirty_pages);
-EXPORT_SYMBOL(obd_dirty_transit_pages);
-EXPORT_SYMBOL(at_min);
-EXPORT_SYMBOL(at_max);
-EXPORT_SYMBOL(at_extra);
-EXPORT_SYMBOL(at_early_margin);
-EXPORT_SYMBOL(at_history);
-EXPORT_SYMBOL(ptlrpc_put_connection_superhack);
-EXPORT_SYMBOL(proc_lustre_root);
-
-/* uuid.c */
-EXPORT_SYMBOL(class_uuid_unparse);
-EXPORT_SYMBOL(lustre_uuid_to_peer);
-
-EXPORT_SYMBOL(class_handle_hash);
-EXPORT_SYMBOL(class_handle_unhash);
-EXPORT_SYMBOL(class_handle_hash_back);
-EXPORT_SYMBOL(class_handle2object);
-EXPORT_SYMBOL(class_handle_free_cb);
-
-/* obd_config.c */
-EXPORT_SYMBOL(class_incref);
-EXPORT_SYMBOL(class_decref);
-EXPORT_SYMBOL(class_get_profile);
-EXPORT_SYMBOL(class_del_profile);
-EXPORT_SYMBOL(class_del_profiles);
-EXPORT_SYMBOL(class_process_config);
-EXPORT_SYMBOL(class_process_proc_param);
-EXPORT_SYMBOL(class_config_parse_llog);
-EXPORT_SYMBOL(class_config_dump_llog);
-EXPORT_SYMBOL(class_attach);
-EXPORT_SYMBOL(class_setup);
-EXPORT_SYMBOL(class_cleanup);
-EXPORT_SYMBOL(class_detach);
-EXPORT_SYMBOL(class_manual_cleanup);
-
-/* mea.c */
-EXPORT_SYMBOL(mea_name2idx);
-EXPORT_SYMBOL(raw_name2idx);
-
#define OBD_INIT_CHECK
#ifdef OBD_INIT_CHECK
int obd_init_checks(void)
LPROCFS_SRCH_EXIT();
return temp;
}
+EXPORT_SYMBOL(lprocfs_srch);
/* lprocfs API calls */
LPROCFS_WRITE_EXIT();
return proc;
}
+EXPORT_SYMBOL(lprocfs_add_simple);
struct proc_dir_entry *lprocfs_add_symlink(const char *name,
struct proc_dir_entry *parent, const char *format, ...)
OBD_FREE(dest, MAX_STRING_SIZE + 1);
return entry;
}
+EXPORT_SYMBOL(lprocfs_add_symlink);
static ssize_t lprocfs_fops_read(struct file *f, char __user *buf,
size_t size, loff_t *ppos)
LPROCFS_WRITE_EXIT();
return rc;
}
+EXPORT_SYMBOL(lprocfs_add_vars);
void lprocfs_remove(struct proc_dir_entry **rooth)
{
}
LPROCFS_WRITE_EXIT();
}
+EXPORT_SYMBOL(lprocfs_remove);
void lprocfs_remove_proc_entry(const char *name, struct proc_dir_entry *parent)
{
LASSERT(parent != NULL);
remove_proc_entry(name, parent);
}
+EXPORT_SYMBOL(lprocfs_remove_proc_entry);
struct proc_dir_entry *lprocfs_register(const char *name,
struct proc_dir_entry *parent,
}
return newchild;
}
+EXPORT_SYMBOL(lprocfs_register);
/* Generic callbacks */
int lprocfs_rd_uint(char *page, char **start, off_t off,
unsigned int *temp = data;
return snprintf(page, count, "%u\n", *temp);
}
+EXPORT_SYMBOL(lprocfs_rd_uint);
int lprocfs_wr_uint(struct file *file, const char *buffer,
unsigned long count, void *data)
*p = (unsigned int)tmp;
return count;
}
+EXPORT_SYMBOL(lprocfs_wr_uint);
int lprocfs_rd_u64(char *page, char **start, off_t off,
int count, int *eof, void *data)
*eof = 1;
return snprintf(page, count, LPU64"\n", *(__u64 *)data);
}
+EXPORT_SYMBOL(lprocfs_rd_u64);
int lprocfs_rd_atomic(char *page, char **start, off_t off,
int count, int *eof, void *data)
*eof = 1;
return snprintf(page, count, "%d\n", cfs_atomic_read(atom));
}
+EXPORT_SYMBOL(lprocfs_rd_atomic);
int lprocfs_wr_atomic(struct file *file, const char *buffer,
unsigned long count, void *data)
cfs_atomic_set(atm, val);
return count;
}
+EXPORT_SYMBOL(lprocfs_wr_atomic);
int lprocfs_rd_uuid(char *page, char **start, off_t off, int count,
int *eof, void *data)
*eof = 1;
return snprintf(page, count, "%s\n", obd->obd_uuid.uuid);
}
+EXPORT_SYMBOL(lprocfs_rd_uuid);
int lprocfs_rd_name(char *page, char **start, off_t off, int count,
int *eof, void *data)
*eof = 1;
return snprintf(page, count, "%s\n", dev->obd_name);
}
+EXPORT_SYMBOL(lprocfs_rd_name);
int lprocfs_rd_fstype(char *page, char **start, off_t off, int count, int *eof,
void *data)
LASSERT(obd->obd_fsops->fs_type != NULL);
return snprintf(page, count, "%s\n", obd->obd_fsops->fs_type);
}
+EXPORT_SYMBOL(lprocfs_rd_fstype);
int lprocfs_rd_blksize(char *page, char **start, off_t off, int count,
int *eof, void *data)
}
return rc;
}
+EXPORT_SYMBOL(lprocfs_rd_blksize);
int lprocfs_osd_rd_blksize(char *page, char **start, off_t off,
int count, int *eof, void *data)
}
return rc;
}
+EXPORT_SYMBOL(lprocfs_rd_kbytestotal);
int lprocfs_osd_rd_kbytestotal(char *page, char **start, off_t off,
int count, int *eof, void *data)
}
return rc;
}
+EXPORT_SYMBOL(lprocfs_rd_kbytesfree);
int lprocfs_osd_rd_kbytesfree(char *page, char **start, off_t off,
int count, int *eof, void *data)
}
return rc;
}
+EXPORT_SYMBOL(lprocfs_rd_kbytesavail);
int lprocfs_osd_rd_kbytesavail(char *page, char **start, off_t off,
int count, int *eof, void *data)
return rc;
}
+EXPORT_SYMBOL(lprocfs_rd_filestotal);
int lprocfs_osd_rd_filestotal(char *page, char **start, off_t off,
int count, int *eof, void *data)
}
return rc;
}
+EXPORT_SYMBOL(lprocfs_rd_filesfree);
int lprocfs_osd_rd_filesfree(char *page, char **start, off_t off,
int count, int *eof, void *data)
LPROCFS_CLIMP_EXIT(obd);
return rc;
}
+EXPORT_SYMBOL(lprocfs_rd_server_uuid);
int lprocfs_rd_conn_uuid(char *page, char **start, off_t off, int count,
int *eof, void *data)
LPROCFS_CLIMP_EXIT(obd);
return rc;
}
+EXPORT_SYMBOL(lprocfs_rd_conn_uuid);
/** add up per-cpu counters */
void lprocfs_stats_collect(struct lprocfs_stats *stats, int idx,
cnt->lc_units = stats->ls_percpu[0]->lp_cntr[idx].lc_units;
lprocfs_stats_unlock(stats, LPROCFS_GET_NUM_CPU, &flags);
}
+EXPORT_SYMBOL(lprocfs_stats_collect);
/**
* Append a space separated list of current set flags to str.
LPROCFS_CLIMP_EXIT(obd);
return i;
}
+EXPORT_SYMBOL(lprocfs_rd_import);
int lprocfs_rd_state(char *page, char **start, off_t off, int count,
int *eof, void *data)
LPROCFS_CLIMP_EXIT(obd);
return i;
}
+EXPORT_SYMBOL(lprocfs_rd_state);
int lprocfs_at_hist_helper(char *page, int count, int rc,
struct adaptive_timeout *at)
rc += snprintf(page + rc, count - rc, "\n");
return rc;
}
+EXPORT_SYMBOL(lprocfs_at_hist_helper);
/* See also ptlrpc_lprocfs_rd_timeouts */
int lprocfs_rd_timeouts(char *page, char **start, off_t off, int count,
LPROCFS_CLIMP_EXIT(obd);
return rc;
}
+EXPORT_SYMBOL(lprocfs_rd_timeouts);
int lprocfs_rd_connect_flags(char *page, char **start, off_t off,
int count, int *eof, void *data)
*eof = 1;
return snprintf(page, count, "%u\n", obd->obd_num_exports);
}
+EXPORT_SYMBOL(lprocfs_rd_num_exports);
int lprocfs_rd_numrefs(char *page, char **start, off_t off, int count,
int *eof, void *data)
*eof = 1;
return snprintf(page, count, "%d\n", class->typ_refcnt);
}
+EXPORT_SYMBOL(lprocfs_rd_numrefs);
int lprocfs_obd_setup(struct obd_device *obd, struct lprocfs_vars *list)
{
}
return rc;
}
+EXPORT_SYMBOL(lprocfs_obd_setup);
int lprocfs_obd_cleanup(struct obd_device *obd)
{
}
return 0;
}
+EXPORT_SYMBOL(lprocfs_obd_cleanup);
static void lprocfs_free_client_stats(struct nid_stat *client_stat)
{
}
EXIT;
}
+EXPORT_SYMBOL(lprocfs_free_per_client_stats);
struct lprocfs_stats *lprocfs_alloc_stats(unsigned int num,
enum lprocfs_stats_flags flags)
}
return stats;
}
+EXPORT_SYMBOL(lprocfs_alloc_stats);
void lprocfs_free_stats(struct lprocfs_stats **statsh)
{
OBD_FREE(stats->ls_percpu[i], percpusize);
OBD_FREE(stats, offsetof(typeof(*stats), ls_percpu[num_entry]));
}
+EXPORT_SYMBOL(lprocfs_free_stats);
void lprocfs_clear_stats(struct lprocfs_stats *stats)
{
lprocfs_stats_unlock(stats, LPROCFS_GET_NUM_CPU, &flags);
}
+EXPORT_SYMBOL(lprocfs_clear_stats);
static ssize_t lprocfs_stats_seq_write(struct file *file, const char *buf,
size_t len, loff_t *off)
return 0;
}
+EXPORT_SYMBOL(lprocfs_register_stats);
void lprocfs_counter_init(struct lprocfs_stats *stats, int index,
unsigned conf, const char *name, const char *units)
LPROCFS_OBD_OP_INIT(num_private_stats, stats, getref);
LPROCFS_OBD_OP_INIT(num_private_stats, stats, putref);
}
+EXPORT_SYMBOL(lprocfs_init_ops_stats);
int lprocfs_alloc_obd_stats(struct obd_device *obd, unsigned num_private_stats)
{
}
return rc;
}
+EXPORT_SYMBOL(lprocfs_alloc_obd_stats);
void lprocfs_free_obd_stats(struct obd_device *obd)
{
if (obd->obd_stats)
lprocfs_free_stats(&obd->obd_stats);
}
+EXPORT_SYMBOL(lprocfs_free_obd_stats);
#define LPROCFS_MD_OP_INIT(base, stats, op) \
do { \
LPROCFS_MD_OP_INIT(num_private_stats, stats, intent_getattr_async);
LPROCFS_MD_OP_INIT(num_private_stats, stats, revalidate_lock);
}
+EXPORT_SYMBOL(lprocfs_init_mps_stats);
int lprocfs_alloc_md_stats(struct obd_device *obd,
unsigned num_private_stats)
}
return rc;
}
+EXPORT_SYMBOL(lprocfs_alloc_md_stats);
void lprocfs_free_md_stats(struct obd_device *obd)
{
lprocfs_free_stats(&stats);
}
}
+EXPORT_SYMBOL(lprocfs_free_md_stats);
void lprocfs_init_ldlm_stats(struct lprocfs_stats *ldlm_stats)
{
LDLM_GL_CALLBACK - LDLM_FIRST_OPC,
0, "ldlm_gl_callback", "reqs");
}
+EXPORT_SYMBOL(lprocfs_init_ldlm_stats);
int lprocfs_exp_rd_nid(char *page, char **start, off_t off, int count,
int *eof, void *data)
OBD_FREE_PTR(new_stat);
RETURN(rc);
}
+EXPORT_SYMBOL(lprocfs_exp_setup);
int lprocfs_exp_cleanup(struct obd_export *exp)
{
return 0;
}
+EXPORT_SYMBOL(lprocfs_exp_cleanup);
int lprocfs_write_helper(const char *buffer, unsigned long count,
int *val)
{
return lprocfs_write_frac_helper(buffer, count, val, 1);
}
+EXPORT_SYMBOL(lprocfs_write_helper);
int lprocfs_write_frac_helper(const char *buffer, unsigned long count,
int *val, int mult)
}
return 0;
}
+EXPORT_SYMBOL(lprocfs_write_frac_helper);
int lprocfs_read_frac_helper(char *buffer, unsigned long count, long val,
int mult)
buffer[prtn++] ='\n';
return prtn;
}
+EXPORT_SYMBOL(lprocfs_read_frac_helper);
int lprocfs_write_u64_helper(const char *buffer, unsigned long count,__u64 *val)
{
return lprocfs_write_frac_u64_helper(buffer, count, val, 1);
}
+EXPORT_SYMBOL(lprocfs_write_u64_helper);
int lprocfs_write_frac_u64_helper(const char *buffer, unsigned long count,
__u64 *val, int mult)
*val = whole * mult + frac;
return 0;
}
+EXPORT_SYMBOL(lprocfs_write_frac_u64_helper);
int lprocfs_seq_create(cfs_proc_dir_entry_t *parent, char *name, mode_t mode,
struct file_operations *seq_fops, void *data)
return snprintf(page, count, "%u\n", obd->u.obt.obt_instance);
}
EXPORT_SYMBOL(lprocfs_target_rd_instance);
-
-EXPORT_SYMBOL(lprocfs_register);
-EXPORT_SYMBOL(lprocfs_srch);
-EXPORT_SYMBOL(lprocfs_remove);
-EXPORT_SYMBOL(lprocfs_remove_proc_entry);
-EXPORT_SYMBOL(lprocfs_add_vars);
-EXPORT_SYMBOL(lprocfs_obd_setup);
-EXPORT_SYMBOL(lprocfs_obd_cleanup);
-EXPORT_SYMBOL(lprocfs_add_simple);
-EXPORT_SYMBOL(lprocfs_add_symlink);
-EXPORT_SYMBOL(lprocfs_free_per_client_stats);
-EXPORT_SYMBOL(lprocfs_alloc_stats);
-EXPORT_SYMBOL(lprocfs_free_stats);
-EXPORT_SYMBOL(lprocfs_clear_stats);
-EXPORT_SYMBOL(lprocfs_register_stats);
-EXPORT_SYMBOL(lprocfs_init_ops_stats);
-EXPORT_SYMBOL(lprocfs_init_mps_stats);
-EXPORT_SYMBOL(lprocfs_init_ldlm_stats);
-EXPORT_SYMBOL(lprocfs_alloc_obd_stats);
-EXPORT_SYMBOL(lprocfs_alloc_md_stats);
-EXPORT_SYMBOL(lprocfs_free_obd_stats);
-EXPORT_SYMBOL(lprocfs_free_md_stats);
-EXPORT_SYMBOL(lprocfs_exp_setup);
-EXPORT_SYMBOL(lprocfs_exp_cleanup);
-
-EXPORT_SYMBOL(lprocfs_rd_u64);
-EXPORT_SYMBOL(lprocfs_rd_atomic);
-EXPORT_SYMBOL(lprocfs_wr_atomic);
-EXPORT_SYMBOL(lprocfs_rd_uint);
-EXPORT_SYMBOL(lprocfs_wr_uint);
-EXPORT_SYMBOL(lprocfs_rd_uuid);
-EXPORT_SYMBOL(lprocfs_rd_name);
-EXPORT_SYMBOL(lprocfs_rd_fstype);
-EXPORT_SYMBOL(lprocfs_rd_server_uuid);
-EXPORT_SYMBOL(lprocfs_rd_conn_uuid);
-EXPORT_SYMBOL(lprocfs_rd_num_exports);
-EXPORT_SYMBOL(lprocfs_rd_numrefs);
-EXPORT_SYMBOL(lprocfs_at_hist_helper);
-EXPORT_SYMBOL(lprocfs_rd_import);
-EXPORT_SYMBOL(lprocfs_rd_state);
-EXPORT_SYMBOL(lprocfs_rd_timeouts);
-EXPORT_SYMBOL(lprocfs_rd_blksize);
-EXPORT_SYMBOL(lprocfs_rd_kbytestotal);
-EXPORT_SYMBOL(lprocfs_rd_kbytesfree);
-EXPORT_SYMBOL(lprocfs_rd_kbytesavail);
-EXPORT_SYMBOL(lprocfs_rd_filestotal);
-EXPORT_SYMBOL(lprocfs_rd_filesfree);
-
-EXPORT_SYMBOL(lprocfs_write_helper);
-EXPORT_SYMBOL(lprocfs_write_frac_helper);
-EXPORT_SYMBOL(lprocfs_read_frac_helper);
-EXPORT_SYMBOL(lprocfs_write_u64_helper);
-EXPORT_SYMBOL(lprocfs_write_frac_u64_helper);
-EXPORT_SYMBOL(lprocfs_stats_collect);
#endif /* LPROCFS*/
return 0;
}
+EXPORT_SYMBOL(class_find_param);
/**
* Finds a parameter in \a params and copies it to \a copy.
}
return 1;
}
+EXPORT_SYMBOL(class_get_next_param);
/* returns 0 if this is the first key in the buffer, else 1.
valp points to first char after key. */
return 0;
}
+EXPORT_SYMBOL(class_match_param);
static int parse_nid(char *buf, void *value)
{
{
return class_parse_value(buf, CLASS_PARSE_NID, (void *)nid, endh);
}
+EXPORT_SYMBOL(class_parse_nid);
int class_parse_net(char *buf, __u32 *net, char **endh)
{
return class_parse_value(buf, CLASS_PARSE_NET, (void *)net, endh);
}
+EXPORT_SYMBOL(class_parse_net);
/* 1 param contains key and match
* 0 param contains key and not match
}
return rc;
}
+EXPORT_SYMBOL(class_match_nid);
int class_match_net(char *buf, char *key, __u32 net)
{
}
return rc;
}
-
-EXPORT_SYMBOL(class_find_param);
-EXPORT_SYMBOL(class_get_next_param);
-EXPORT_SYMBOL(class_match_param);
-EXPORT_SYMBOL(class_parse_nid);
-EXPORT_SYMBOL(class_parse_net);
-EXPORT_SYMBOL(class_match_nid);
EXPORT_SYMBOL(class_match_net);
/********************** class fns **********************/
}
return rc;
}
+EXPORT_SYMBOL(class_attach);
/** Create hashes, self-export, and call type-specific setup.
* Setup is effectively the "start this obd" call.
CERROR("setup %s failed (%d)\n", obd->obd_name, err);
return err;
}
+EXPORT_SYMBOL(class_setup);
/** We have finished using this obd and are ready to destroy it.
* There can be no more references to this obd.
class_decref(obd, "attach", obd);
RETURN(0);
}
+EXPORT_SYMBOL(class_detach);
/** Start shutting down the obd. There may be in-progess ops when
* this is called. We tell them to start shutting down with a call
RETURN(0);
}
+EXPORT_SYMBOL(class_cleanup);
struct obd_device *class_incref(struct obd_device *obd,
const char *scope, const void *source)
return obd;
}
+EXPORT_SYMBOL(class_incref);
void class_decref(struct obd_device *obd, const char *scope, const void *source)
{
class_release_dev(obd);
}
}
+EXPORT_SYMBOL(class_decref);
/** Add a failover nid location.
* Client obd types contact server obd types using this nid list.
}
RETURN(NULL);
}
+EXPORT_SYMBOL(class_get_profile);
/** Create a named "profile".
* This defines the mdc and osc names to use for a client.
}
EXIT;
}
+EXPORT_SYMBOL(class_del_profile);
/* COMPAT_146 */
void class_del_profiles(void)
}
EXIT;
}
+EXPORT_SYMBOL(class_del_profiles);
static int class_set_global(char *ptr, int val, struct lustre_cfg *lcfg)
{
}
return err;
}
+EXPORT_SYMBOL(class_process_config);
int class_process_proc_param(char *prefix, struct lprocfs_vars *lvars,
struct lustre_cfg *lcfg, void *data)
RETURN(0);
#endif
}
+EXPORT_SYMBOL(class_process_proc_param);
int class_config_dump_handler(struct llog_handle * handle,
struct llog_rec_hdr *rec, void *data);
RETURN(rc);
}
+EXPORT_SYMBOL(class_config_parse_llog);
int class_config_dump_handler(struct llog_handle * handle,
struct llog_rec_hdr *rec, void *data)
RETURN(rc);
}
+EXPORT_SYMBOL(class_config_dump_llog);
/** Call class_cleanup and class_detach.
* "Manual" only in the sense that we're faking lcfg commands.
lustre_cfg_free(lcfg);
RETURN(rc);
}
+EXPORT_SYMBOL(class_manual_cleanup);
/*
* uuid<->export lustre hash operations