llapi_layout_comp_flags_get(3)

NAME
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.

SYNOPSIS
#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);

DESCRIPTION

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 VALUES
Return 0 on success, or -1 if an error occurred (in which case, errno is set appropriately).

ERRORS

EINVAL
    An invalid argument was specified.

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