LLAPI_LAYOUT_COMP_USE_ID(3)

NAME
llapi_layout_comp_use_id - set currently active component to given ID

SYNOPSIS
#include <lustre/lustreapi.h>

int llapi_layout_comp_use_id(struct llapi_layout *layout,
                             uint32_t *comp_id);

DESCRIPTION
Sets currently active component of layout to the component with specified comp_id.

RETURN VALUES
Return 0 on success. Otherwise, if an error occurred -1 is returned and errno is set appropriately.

ERRORS

ENOENT
    No such component ID exists.

EINVAL
    An invalid argument was specified.

AVAILABILITY
llapi_layout_comp_use_id() is part of the lustre(7) user application interface library since release 2.10.0

SEE ALSO
llapi_layout_alloc(3), llapi_layout_comp_del(3), llapi_layout_comp_id_get(3), llapi_layout_comp_use(3), llapi_layout_file_open(3), llapi_layout(7), lustreapi(7)