| LLAPI_LAYOUT_STRIPE_SIZE_GET(3) | Lustre Library Functions | LLAPI_LAYOUT_STRIPE_SIZE_GET(3) |
NAME
llapi_layout_stripe_size_get, llapi_layout_stripe_size_set - get or set the stripe size of a Lustre file
SYNOPSIS
#include <lustre/lustreapi.h>
int llapi_layout_stripe_size_get(const struct llapi_layout *layout,
uint64_t *stripe_size);
int llapi_layout_stripe_size_set(struct llapi_layout *layout,
uint64_t stripe_size);
DESCRIPTION
The stripe size indicates how much data to write to one OST before moving to the next OST.
llapi_layout_stripe_size_get() stores into stripe_size the stripe size of layout.
llapi_layout_stripe_size_set() sets the stripe size of layout to stripe_size.
A stripe_size value of LLAPI_LAYOUT_DEFAULT means that the default stripe size will be used.
RETURN VALUES
llapi_layout_stripe_size_get() and llapi_layout_stripe_size_set() return 0 on success, or -1 if an error occurred (in which case, errno is set appropriately).
ERRORS
- EINVAL
- An invalid argument was specified.
AVAILABILITY
llapi_layout_stripe_size_get() and llapi_layout_stripe_size_set() is part of the lustre(7) user application interface library since release 2.7.0
SEE ALSO
llapi_layout_alloc(3), llapi_layout_extension_size_get(3), llapi_layout_extension_size_set(3), llapi_layout_file_open(3), llapi_layout(7), lustreapi(7)
| 2024-08-27 | Lustre User API |