Whamcloud - gitweb
LU-5541 lustreapi: only export the API symbols 65/30865/3
authorfrank zago <fzago@cray.com>
Sun, 14 Jan 2018 17:48:21 +0000 (12:48 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 25 Jan 2018 04:48:05 +0000 (04:48 +0000)
commite954d93f264d8ae559cbd41ed6d7b977674dd42b
treecbe5520e9a705c1373ae6b4ea4639f115e26bd92
parentb7285d387c78fbd11579c577230593ba1b0be84e
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.

Test-Parameters: trivial

Change-Id: I4fc2febd2528fc85f546426e08e3ab67e1305c40
Signed-off-by: frank zago <fzago@cray.com>
Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Reviewed-on: https://review.whamcloud.com/30865
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
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