Whamcloud - gitweb
LU-8837 utils: make tools lightweight for lustre clients 15/28315/11
authorJames Simmons <uja.ornl@yahoo.com>
Thu, 9 Nov 2017 00:50:48 +0000 (19:50 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 22 Nov 2017 03:55:12 +0000 (03:55 +0000)
commitd62efba975d27d98f2d50f14d49dda53d2355d0c
treeff146ac6b8d614312bd271f60873a281f1081eb2
parentdb831c666c24d23058021ca7e4a4cbaa63997fd9
LU-8837 utils: make tools lightweight for lustre clients

Currently the lustre tools are built for the server target even
for the case of clients rpms. Rework the tools so server specific
code is not built for the client only case. The UAPI headers
lustre_log_user.h, lustre_barrier_user.h, and lustre_disk.h are
server specific and are not available in the upstream client.
So make our tools not to depend on those headers in the client
case. With this change it is simple step to make our tools
buildable against upstream. Last move user land specific code
from lustre_disk.h to mount_utils.h. Don't install server UAPI
headers on client targets.

Change-Id: I6b2b780ac0e7338a085ee6a8747097f0097efca1
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/28315
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Tested-by: Jenkins
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/uapi/linux/lustre/Makefile.am
lustre/include/uapi/linux/lustre/lustre_disk.h
lustre/mdt/mdt_internal.h
lustre/utils/Makefile.am
lustre/utils/lctl.c
lustre/utils/mount_lustre.c
lustre/utils/mount_utils.c
lustre/utils/mount_utils.h
lustre/utils/obd.c
lustre/utils/obdctl.h
lustre/utils/wiretest.c