1 .TH llapi_layout_pattern_get 3 "2013 Oct 31" "Lustre User API"
3 llapi_layout_pattern_get, llapi_layout_pattern_set \- get or set the
4 RAID striping pattern of a Lustre file
7 .B #include <lustre/lustreapi.h>
9 .BI "int llapi_layout_pattern_get(const struct llapi_layout *" layout ", uint64_t *" pattern );
11 .BI "int llapi_layout_pattern_set(struct llapi_layout *" layout ", uint64_t " pattern );
15 .B llapi_layout_pattern_get()
18 the RAID striping pattern used by layout
21 .B llapi_layout_pattern_set()
22 sets the RAID striping pattern of
26 Currently the only supported RAID pattern is RAID0. If
28 is not a supported RAID pattern the return value will be -1 and errno will
35 .B LLAPI_LAYOUT_DEFAULT
36 means that the filesystem default RAID pattern will be used.
42 means that the RAID0 pattern will be used.
45 .B llapi_layout_pattern_get()
47 .B llapi_layout_pattern_set()
48 return 0 on success, or -1 if an error occurred (in which case, errno is
53 An invalid argument was specified.
56 An unsupported RAID pattern was specified.
58 .BR llapi_layout_alloc (3),
59 .BR llapi_layout_file_open (3),