Whamcloud - gitweb
LU-12624 lod: alloc dir stripes by QoS
[fs/lustre-release.git] / lustre / doc / llapi_layout_file_comp_add.3
1 .TH llapi_layout_file_comp_add 3 "2017 Apr 7" "Lustre User API"
2 .SH NAME
3 llapi_layout_file_comp_add  \- add one or more components into an
4 existing file.
5 .SH SYNOPSIS
6 .nf
7 .B #include <lustre/lustreapi.h>
8 .PP
9 .BI "int llapi_layout_file_comp_add(const char *" path ",
10 .BI "                               const struct llapi_layout *" layout );
11 .fi
12 .SH DESCRIPTION
13 .PP
14 Add component(s) specified in
15 .I layout
16 into the existing file
17 .IR path .
18 .PP
19 .SH RETURN VALUES
20 Return 0 on success, or -1 if an error occurred (in which case, errno is
21 set appropriately).
22 .SH ERRORS
23 .TP 15
24 .SM EINVAL
25 An invalid argument was specified.
26 .TP
27 .SM ENOENT
28 .I path
29 doesn't exist.
30 .SH "SEE ALSO"
31 .BR llapi_layout_alloc (3),
32 .BR llapi_layout_file_open (3),
33 .BR llapi_layout_comp_add (3),
34 .BR llapi_layout_comp_del (3),
35 .BR llapi_layout (7),
36 .BR lustreapi (7)