Whamcloud - gitweb
LU-8998 llapi: rename llapi_layout_comp_move -> *use 83/26483/3
authorAndreas Dilger <andreas.dilger@intel.com>
Thu, 30 Mar 2017 23:12:29 +0000 (17:12 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 5 May 2017 00:43:11 +0000 (00:43 +0000)
commit1390c68c28c3f260fb96658d9559e31969f0e98a
tree07ec2e5ee5e26bfff2bbf6f5675c908ead1b5318
parent37bbe9a1bf33b77d3f239ea69ce052e99f09308d
LU-8998 llapi: rename llapi_layout_comp_move -> *use

Rename llapi_layout_comp_move() and llapi_layout_comp_move_at()
to llapi_layout_comp_use() and llapi_layout_comp_use_id(),
respectively.  This avoids confusion about what "move" and "at" in
the function name implies. The component itself is not actually
being moved, just a different layout component is being selected
for access or modification.  Using "_id" instead of "_at" also
makes it more clear what the difference is between these functions.

Rename LLAPI_LAYOUT_COMP_POS_{FIRST,NEXT,LAST} correspondingly to
LLAPI_LAYOUT_COMP_USE_{FIRST,NEXT,LAST} to match.

Split llapi_layout_comp_use_id.3 from llapi_layout_comp_use.3 since
they are mostly independent anyway.

Test-Parameters: trivial testlist=sanity-pfl
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I85926d4ec9774745bc49b0d178ed9b23ec2cab07
Reviewed-on: https://review.whamcloud.com/26483
Tested-by: Jenkins
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
12 files changed:
lustre/doc/Makefile.am
lustre/doc/llapi_layout.7
lustre/doc/llapi_layout_comp_move.3 [deleted file]
lustre/doc/llapi_layout_comp_move_at.3 [deleted file]
lustre/doc/llapi_layout_comp_use.3 [new file with mode: 0644]
lustre/doc/llapi_layout_comp_use_id.3 [new file with mode: 0644]
lustre/doc/llapi_layout_file_comp_del.3
lustre/doc/lustreapi.7
lustre/include/lustre/lustreapi.h
lustre/tests/llapi_layout_test.c
lustre/utils/lfs.c
lustre/utils/liblustreapi_layout.c