Whamcloud - gitweb
LU-5541 lustreapi: only export the API symbols 43/11643/19
authorfrank zago <fzago@cray.com>
Sun, 13 Aug 2017 18:17:17 +0000 (14:17 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 28 Aug 2017 06:26:16 +0000 (06:26 +0000)
commitb36c377ff25c20417c481eab3798e67d042ec3a3
tree14795e46593404b65244e306a5b5e4b2f79ab390
parentab1df50e73ff838053fff62302c3b884e4e19552
LU-5541 lustreapi: only export the API symbols

By default, all kind of symbols are exported from the library (dump,
libcfs_ukuc_start, l_ioctl, set_ioctl_dump, ...), which may create
external conflicts. Use the linker version-script options to only
export the API symbols, and prevent the export of internal symbols.

Only the symbols declared in the global section of liblustreapi.map
will be seen by applications.

Fix lshowmount to use libcfs and not internal liblustreapi symbol.

Change-Id: Ica4226c1ea9b6b159a056ad22bacaa2ffcf4b171
Signed-off-by: frank zago <fzago@cray.com>
Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-on: https://review.whamcloud.com/11643
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Henri Doreau <henri.doreau@cea.fr>
lustre/include/lustre/lustreapi.h
lustre/utils/Makefile.am
lustre/utils/lfs.c
lustre/utils/liblustreapi.c
lustre/utils/liblustreapi.map [new file with mode: 0644]
lustre/utils/liblustreapi_util.c
lustre/utils/lshowmount.c
lustre/utils/lustre_lfsck.c
lustre/utils/lustreapi_internal.h
lustre/utils/obd.c