Whamcloud - gitweb
LU-8998 llapi: add LLAPI_LAYOUT_COMP_USE_PREV 84/26484/4
authorAndreas Dilger <andreas.dilger@intel.com>
Mon, 10 Apr 2017 21:22:06 +0000 (15:22 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 9 May 2017 03:45:35 +0000 (03:45 +0000)
commit6746484df44e456ca3df47708e7d1bc14e4404e8
tree0563e06da242122413e7741d4edc0935ce0e3749
parent293da2049c902de97c8cad2dfa17486a36473421
LU-8998 llapi: add LLAPI_LAYOUT_COMP_USE_PREV

Add LLAPI_LAYOUT_COMP_USE_PREV to be able to iterate through
components in reverse order.

Add a test case to llapi_layout_test.c to exercise COMP_USE_LAST
and COMP_USE_PREV options.

Improve description of component ID in llapi_layout_comp_id_get.3
to indicate that the component ID does not imply ordering or other
semantics, and is just a numeric identifier for each component.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I21f78e575c2429ef927c8c2fc50bf150f59cab07
Reviewed-on: https://review.whamcloud.com/26484
Reviewed-by: Niu Yawei <yawei.niu@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bobi Jam <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/doc/llapi_layout_comp_id_get.3
lustre/doc/llapi_layout_comp_use.3
lustre/include/lustre/lustreapi.h
lustre/tests/llapi_layout_test.c
lustre/utils/liblustreapi_layout.c