Whamcloud - gitweb
LU-6401 uapi: change lustre_cfg.h into a proper UAPI header 66/26966/8
authorJames Simmons <uja.ornl@yahoo.com>
Tue, 30 May 2017 11:27:35 +0000 (07:27 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 7 Jun 2017 20:31:25 +0000 (20:31 +0000)
commit4fedbc879571305a0d14a2caa989c8c306efc54c
tree4f5a175ec1464930462f005f3bf17abe64b9197d
parentd61792d0f5fa1e313ec216a5dcb833381cbec92b
LU-6401 uapi: change lustre_cfg.h into a proper UAPI header

Instead of handling memory allocation for both userland and
kernel space remove lustre_cfg_new() and lustre_cfg_free()
and just use what is required for both kernel and user space.
To perserve the truncate warning move lustre_cfg_string()
to obd_config.c. Implement user land version for llog_reader.
Lastly remove libcfs.h via obd_support.h from lustre_cfg.h
and move it to the uapi directory.

Change-Id: I96469b9040a9b3f885e117debba107f90955e09f
Signed-off-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-on: https://review.whamcloud.com/26966
Reviewed-by: Quentin Bouget <quentin.bouget@cea.fr>
Tested-by: Jenkins
Reviewed-by: Ben Evans <bevans@cray.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
20 files changed:
lustre/include/Makefile.am
lustre/include/lustre_cfg.h [deleted file]
lustre/include/lustre_lib.h
lustre/include/obd_class.h
lustre/include/uapi/linux/Makefile.am
lustre/include/uapi/linux/lustre_cfg.h [new file with mode: 0644]
lustre/lod/lod_internal.h
lustre/lod/lproc_lod.c
lustre/mdt/mdt_handler.c
lustre/mgc/mgc_request.c
lustre/mgs/mgs_handler.c
lustre/obdclass/obd_config.c
lustre/obdclass/obd_mount.c
lustre/obdclass/obd_mount_server.c
lustre/ofd/ofd_dev.c
lustre/osp/lwp_dev.c
lustre/utils/llog_reader.c
lustre/utils/lustre_cfg.c
lustre/utils/mount_utils.c
lustre/utils/obd.c