OS Manuals

llapi_layout_comp_flags_clear(3)

llapi_layout_comp_flags_get, llapi_layout_comp_flags_set, llapi_layout_comp_flags_clear - get, set or clear the flags of a layout component.

LLAPI_LAYOUT_COMP_FLAGS_GET(3) Lustre Library Functions LLAPI_LAYOUT_COMP_FLAGS_GET(3)

llapi_layout_comp_flags_get, llapi_layout_comp_flags_set, llapi_layout_comp_flags_clear - get, set or clear the flags of a layout component.

#include <lustre/lustreapi.h>
int llapi_layout_comp_flags_get(const struct llapi_layout *layout,
                                uint32_t *flags);
int llapi_layout_comp_flags_set(struct llapi_layout *layout,
                                uint32_t flags);
int llapi_layout_comp_flags_clear(struct llapi_layout *layout,
                                  uint32_t flags);

Layout component flags are used to indicate the status of the component, only LCME_FL_INIT is supported now, which indicates the OST objects of the component have been initialized.

llapi_layout_comp_flags_get(3) gets the flags of layout and stores it into flags.

llapi_layout_comp_flags_set(3) sets the specified flags to the layout.

llapi_layout_comp_flags_clear(3) clears the specified flags from the layout.

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

An invalid argument was specified.

llapi_layout_comp_flags_get(), llapi_layout_comp_flags_set() and llapi_layout_comp_flags_clear() are part of the lustre(7) user application interface library since release 2.10.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