Example #1
0
static int __init llog_test_init(void)
{
	struct lprocfs_static_vars uninitialized_var(lvars);

	lprocfs_llog_test_init_vars(&lvars);
	return class_register_type(&llog_obd_ops, NULL,
				   lvars.module_vars, "llog_test", NULL);
}
Example #2
0
static int __init llog_test_init(void)
{
	return class_register_type(&llog_obd_ops, NULL, NULL,
#ifndef HAVE_ONLY_PROCFS_SEQ
					NULL,
#endif
					"llog_test", NULL);
}
Example #3
0
/* global variable initialization called when the lquota module is loaded */
int qmt_glb_init(void)
{
	int rc;
	ENTRY;

	rc = class_register_type(&qmt_obd_ops, NULL, true, NULL,
				 LUSTRE_QMT_NAME, &qmt_device_type);
	RETURN(rc);
}
Example #4
0
static int __init mgs_init(void)
{
        struct lprocfs_static_vars lvars;

        lprocfs_mgs_init_vars(&lvars);
        class_register_type(&mgs_obd_ops, NULL,
                            lvars.module_vars, LUSTRE_MGS_NAME, NULL);

        return 0;
}
Example #5
0
/* global variable initialization called when the lquota module is loaded */
int qmt_glb_init(void)
{
	int rc;
	ENTRY;

	rc = class_register_type(&qmt_obd_ops, NULL, NULL,
#ifndef HAVE_ONLY_PROCFS_SEQ
				NULL,
#endif
				LUSTRE_QMT_NAME, &qmt_device_type);
	RETURN(rc);
}
Example #6
0
static int __init mds_cmd_init(void)
{
        struct lprocfs_static_vars lvars;
        int rc;

        cfs_request_module("%s", "lquota");
        mds_quota_interface_ref = PORTAL_SYMBOL_GET(mds_quota_interface);
        rc = lquota_init(mds_quota_interface_ref);
        if (rc) {
                if (mds_quota_interface_ref)
                        PORTAL_SYMBOL_PUT(mds_quota_interface);
                return rc;
        }
        init_obd_quota_ops(mds_quota_interface_ref, &mds_cmd_obd_ops);

        lprocfs_mds_init_vars(&lvars);
        class_register_type(&mds_cmd_obd_ops, NULL, lvars.module_vars,
                            LUSTRE_MDS_NAME, NULL);

        return 0;
}
Example #7
0
static int __init mdd_mod_init(void)
{
	int rc;

	rc = lu_kmem_init(mdd_caches);
	if (rc)
		return rc;

	changelog_orig_logops = llog_osd_ops;
	changelog_orig_logops.lop_cancel = llog_changelog_cancel;
	changelog_orig_logops.lop_add = llog_cat_add_rec;
	changelog_orig_logops.lop_declare_add = llog_cat_declare_add_rec;

	hsm_actions_logops = llog_osd_ops;
	hsm_actions_logops.lop_add = llog_cat_add_rec;
	hsm_actions_logops.lop_declare_add = llog_cat_declare_add_rec;

	rc = class_register_type(&mdd_obd_device_ops, NULL, true, NULL,
				 LUSTRE_MDD_NAME, &mdd_device_type);
	if (rc)
		lu_kmem_fini(mdd_caches);
	return rc;
}
Example #8
0
int __init mgc_init(void)
{
	return class_register_type(&mgc_obd_ops, NULL,
				   NULL, LUSTRE_MGC_NAME, NULL);
}
Example #9
0
static int __init llog_test_init(void)
{
	return class_register_type(&llog_obd_ops, NULL, true, NULL,
				   "llog_test", NULL);
}