X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fobdclass%2Fobd_mount.c;fp=lustre%2Fobdclass%2Fobd_mount.c;h=00c545fc9bab2583a4d86d359d48452cc73cdf70;hb=1fc2e5644bfaa7b596c2664c757c8b157bcd3437;hp=c921a436db2334781b8c4698ba719e72880d1f08;hpb=ae6d373bc6af6b9bb74650e27fb4c1bb87bbf4bf;p=fs%2Flustre-release.git diff --git a/lustre/obdclass/obd_mount.c b/lustre/obdclass/obd_mount.c index c921a43..00c545f 100644 --- a/lustre/obdclass/obd_mount.c +++ b/lustre/obdclass/obd_mount.c @@ -198,6 +198,7 @@ static int do_lcfg_nid(char *cfgname, struct lnet_nid *nid, int cmd, * 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) { @@ -217,7 +218,7 @@ int lustre_start_simple(char *obdname, char *type, char *uuid, } return rc; } -EXPORT_SYMBOL(lustre_start_simple); +SERVER_ONLY_EXPORT_SYMBOL(lustre_start_simple); static DEFINE_MUTEX(mgc_start_lock); @@ -520,7 +521,7 @@ out_free: } 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; @@ -588,7 +589,7 @@ out: mutex_unlock(&mgc_start_lock); RETURN(rc); } -EXPORT_SYMBOL(lustre_stop_mgc); +SERVER_ONLY_EXPORT_SYMBOL(lustre_stop_mgc); /***************** lustre superblock **************/ @@ -857,6 +858,7 @@ int server_name2svname(const char *label, char *svname, const char **endptr, EXPORT_SYMBOL(server_name2svname); #endif /* HAVE_SERVER_SUPPORT */ +#ifdef HAVE_SERVER_SUPPORT /** * check server name is OST. **/ @@ -877,12 +879,13 @@ int server_name_is_ost(const char *svname) 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; @@ -929,7 +932,7 @@ int target_name2index(const char *tgtname, u32 *idx, const char **endptr) return type; } -EXPORT_SYMBOL(target_name2index); +SERVER_ONLY_EXPORT_SYMBOL(target_name2index); /* * Get the index from the OBD name.