Whamcloud - gitweb
LU-9897 utils: remove libcfsutils.a and libptlctl.a 52/28752/7
authorJames Simmons <uja.ornl@yahoo.com>
Mon, 9 Oct 2017 14:37:14 +0000 (10:37 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 24 Oct 2017 07:18:39 +0000 (07:18 +0000)
commitcc95b58e835a7c30bebef2cf930913ac8152997e
tree23ac5fdaedf9b994761a8e5f863299c5caf545cf
parent61f26ea47f96632a90702f2b404e845a01498612
LU-9897 utils: remove libcfsutils.a and libptlctl.a

Currently lustre creates many libraries and combines them in
redudant ways. Broke up libptlctl.a and merged debug.c and
portals.c into lctl. The application lustre_rsync pulled in
way too much extra code that is not needed just for the function
obd_initialize(). Instead just call register_ioc_dev() directly
for lustre_rsync. This removes the libptlctl.a/portals.c
dependency. In time the portals.c code can be replaced by the
work from liblnetconfig. Integrated cyaml into liblnetconfig
instead of directly linking cyaml.c into lnetctl. This way
we can take advantage of YAML in the future for lnet selftest
and lustre utilities. Only a small change was needed for lnet
selftest to be dependent on liblnetconfig instead of libptlctl.a.

Change-Id: Ic1caaa01b3faedf90dc7ae8bc26ee40396a52a07
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/28752
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
13 files changed:
libcfs/libcfs/autoMakefile.am
lnet/utils/Makefile.am
lnet/utils/lnetconfig/Makefile.am
lnet/utils/lnetconfig/cyaml.c [moved from lnet/utils/cyaml/cyaml.c with 100% similarity]
lnet/utils/lnetconfig/liblnd.h
lnet/utils/lnetconfig/liblnetconfig.c
lnet/utils/lnetconfig/liblnetconfig_lnd.c
lnet/utils/lst.c
lustre.spec.in
lustre/utils/Makefile.am
lustre/utils/debug.c [moved from lnet/utils/debug.c with 100% similarity]
lustre/utils/lustre_rsync.c
lustre/utils/portals.c [moved from lnet/utils/portals.c with 100% similarity]