OS Manuals

llapi_layout_stripe_count_get(3)

llapi_layout_stripe_count_get, llapi_layout_stripe_count_set - get or set the stripe count of a Lustre file

LLAPI_LAYOUT_STRIPE_COUNT_GET(3) Lustre Library Functions LLAPI_LAYOUT_STRIPE_COUNT_GET(3)

llapi_layout_stripe_count_get, llapi_layout_stripe_count_set - get or set the stripe count of a Lustre file

#include <lustre/lustreapi.h>
int llapi_layout_stripe_count_get(const struct llapi_layout *layout,
                                  uint64_t *stripe_count);
int llapi_layout_stripe_count_set(struct llapi_layout *layout,
                                  uint64_t stripe_count);

The stripe count of a Lustre file defines the number of OSTs used to store the file.

llapi_layout_stripe_count_get() stores into stripe_count the stripe count of layout.

llapi_layout_stripe_count_set() sets the stripe count of layout to stripe_count.

A stripe_count value of LLAPI_LAYOUT_DEFAULT means that the default stripe count will be used.

A stripe_count value of LLAPI_LAYOUT_WIDE means that the file will be striped as widely as possible.

llapi_layout_stripe_count_get() and llapi_layout_stripe_count_set() return 0 on success, or -1 if an error occurred (in which case, errno is set appropriately).

An invalid argument was specified.

llapi_layout_stripe_count_get() and llapi_layout_stripe_count_set() is part of the lustre(7) user application interface library since release 2.7.0

llapi_layout_alloc(3), llapi_layout_file_open(3), llapi_layout(7), lustreapi(7)

2024-08-27 Lustre User API

lustre 2.17.59-r2 · enterprise-packages · ingested 2026-10-11