1 .TH llapi_layout_comp_add 3 "2017 Apr 7" "Lustre User API"
3 llapi_layout_comp_add, llapi_layout_comp_del \- add or delete a layout
4 component into/from the layout.
7 .B #include <lustre/lustreapi.h>
9 .BI "int llapi_layout_comp_add(struct llapi_layout *" layout ",
10 .BI " struct llapi_layout *" comp );
12 .BI "int llapi_layout_comp_del(struct llapi_layout *" layout ",
13 .BI " struct llapi_layout *" comp );
17 A composite layout is made of several layout components.
19 .BR llapi_layout_comp_add (3)
20 adds the layout component
24 under construction. The
26 will be turned into composite if it was plain before adding. All layout
29 will be inherited from the
31 unless otherwise specified for this component by llapi_layout_*_set(3)
34 .BR llapi_layout_comp_del (3)
35 deletes the layout component
39 but does not delete the component from an existing file layout on the MDT.
42 .B llapi_layout_comp_add()
44 .B llapi_layout_comp_del()
45 return 0 on success, or -1 if an error occurred (in which case, errno is
50 An invalid argument was specified.
52 .BR llapi_layout_alloc (3),
53 .BR llapi_layout_free (3),
54 .BR llapi_layout_file_open (3),
55 .BR llapi_layout_file_comp_add (3),
56 .BR llapi_layout_file_comp_del (3),