1 .TH llapi_layout_comp_move 3 "2015 Nov 4" "Lustre User API"
3 llapi_layout_comp_move \- Move the current component of layout to a specified
4 position: first, next or last.
5 llapi_layout_comp_move_at \- Move the current component of layout to a component
6 with specified component id.
9 .B #include <lustre/lustreapi.h>
11 .BI "int llapi_layout_comp_move(struct llapi_layout *" layout ",
12 .BI " uint32_t *" pos );
14 .BI "int llapi_layout_comp_move_at(struct llapi_layout *" layout ",
15 .BI " uint32_t *" comp_id );
19 Moves the current component of the
21 to a specified position.
23 .BR llapi_layout_comp_move (3)
24 Moves current component to
30 .BR LLAPI_LAYOUT_COMP_POS_FIRST:
31 The first component of the layout.
33 .BR LLAPI_LAYOUT_COMP_POS_NEXT:
34 The next component of current one.
36 .BR LLAPI_LAYOUT_COMP_POS_LAST:
37 The last component of the layout.
39 .BR llapi_layout_comp_move_at (3)
40 Moves current component to the component with specified
43 Return 0 on success, 1 when reaches last component when try to move next, or -1 if
44 an error occurred (in which case, errno is set appropriately).
48 An invalid argument was specified.
50 .BR llapi_layout_alloc (3),
51 .BR llapi_layout_file_open (3),
52 .BR llapi_layout_comp_id (3),