Whamcloud - gitweb
LU-12034 obdclass: disable server-only code on client 66/35566/3
authorAndreas Dilger <adilger@whamcloud.com>
Thu, 18 Jul 2019 19:52:11 +0000 (13:52 -0600)
committerOleg Drokin <green@whamcloud.com>
Thu, 12 Sep 2019 03:46:05 +0000 (03:46 +0000)
commitbc74a0e9929cf438e099d4e21ea41e3b140109f6
tree939d5a9aae3380711d380921a2c93f47d5c08150
parentbab0570ce3081c4a434126da2cb7a9bda1b2cdbb
LU-12034 obdclass: disable server-only code on client

The lu_env_add(), lu_env_remove(), and lu_env_find() functions are
only used on the server.  Conditionally remove them when doing a
client-only build.

Fixes: fce8d80624fd ("LU-12034 obdclass: put all service env on list")

Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I15f4d4de583bb3f9d16adad3ea16f961853ebbe5
Reviewed-on: https://review.whamcloud.com/35566
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lu_object.h
lustre/obdclass/lu_object.c