Whamcloud - gitweb
LU-5065 utils: uninclude lustre_idl.h from lfs 36/10336/2
authorJohn L. Hammond <john.hammond@intel.com>
Thu, 15 May 2014 12:33:38 +0000 (07:33 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 20 May 2014 05:25:17 +0000 (05:25 +0000)
commitcbade14c3f853c4f61f7878c34af6c2cf0baafc8
tree0d33605c3171509f158df0f4a8c4cf378b555862
parentd6f26343824941793010785fd35a74924ad84225
LU-5065 utils: uninclude lustre_idl.h from lfs

Move the definition of OBD_OCD_VERSION() and similar macros from
lustre_idl.h to lustre_ver.h (via lustre_ver.h.in). These macros are
primarily used in comparisons to LUSTRE_VERSION_CODE which is defined
in lustre_ver.h and so should be defined there as well. Move a few
definitions (related to FIDs, quota and striping) from lustre_idl.h to
lustre_user.h. Add some preprocessor gunk to the end of lfs.c to
ensure that lustre_idl.h has not been included indirectly or
otherwise.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I0923ff823ddaa1fd6bc5493a434470543d27f273
Reviewed-on: http://review.whamcloud.com/10336
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/include/lustre/lustre_idl.h
lustre/include/lustre/lustre_user.h
lustre/include/lustre_ver.h.in
lustre/utils/lfs.c