* Call class_attach and class_setup. These methods in turn call
* OBD type-specific methods.
*/
+SERVER_ONLY
int lustre_start_simple(char *obdname, char *type, char *uuid,
char *s1, char *s2, char *s3, char *s4)
{
}
return rc;
}
-EXPORT_SYMBOL(lustre_start_simple);
+SERVER_ONLY_EXPORT_SYMBOL(lustre_start_simple);
static DEFINE_MUTEX(mgc_start_lock);
}
EXPORT_SYMBOL(lustre_start_mgc);
-int lustre_stop_mgc(struct super_block *sb)
+SERVER_ONLY int lustre_stop_mgc(struct super_block *sb)
{
struct lustre_sb_info *lsi = s2lsi(sb);
struct obd_device *obd;
mutex_unlock(&mgc_start_lock);
RETURN(rc);
}
-EXPORT_SYMBOL(lustre_stop_mgc);
+SERVER_ONLY_EXPORT_SYMBOL(lustre_stop_mgc);
/***************** lustre superblock **************/
EXPORT_SYMBOL(server_name2svname);
#endif /* HAVE_SERVER_SUPPORT */
+#ifdef HAVE_SERVER_SUPPORT
/**
* check server name is OST.
**/
return 0;
}
EXPORT_SYMBOL(server_name_is_ost);
+#endif /* HAVE_SERVER_SUPPORT */
/**
* Get the index from the target name MDTXXXX/OSTXXXX
* rc = server type, or rc < 0 on error
**/
-int target_name2index(const char *tgtname, u32 *idx, const char **endptr)
+SERVER_ONLY int target_name2index(const char *tgtname, u32 *idx, const char **endptr)
{
const char *dash = tgtname;
int type, len, rc;
return type;
}
-EXPORT_SYMBOL(target_name2index);
+SERVER_ONLY_EXPORT_SYMBOL(target_name2index);
/*
* Get the index from the OBD name.