OS Manuals

llapi_lov_get_uuids(3)

llapi_lmv_get_uuids, llapi_lov_get_uuids - Get device uuids

LLAPI_LMV_GET_UUIDS(3) Lustre Library Functions LLAPI_LMV_GET_UUIDS(3)

llapi_lmv_get_uuids, llapi_lov_get_uuids - Get device uuids

#include <lustre/lustreapi.h>
int llapi_lmv_get_uuids(int fd, struct obd_uuid *uuidp, int *mdt_count);"
int llapi_lov_get_uuids(int fd, struct obd_uuid *uuidp, int *ost_count);"

The functions llapi_lmv_get_uuids() and llapi_lov_get_uuids(), gets the uuids for respective device type.

fd is the file decriptor for mount point, uuidp is preallocated array of obd_uuid to hold uuids

ost_count returns the count of uuids in the uuidp array.

Return the device uuids on success or a negative errno value on failure.

llapi_lmv_get_uuids(), llapi_lov_get_uuids() are part of the lustre(7) user application interface library since before release 2.17.0

llapi_file_fget_lov_uuid(3), llapi_file_get_lmv_uuid(3), llapi_file_get_lov_uuid(3), llapi_get_obd_count(3), llapi_search_ost(3), lustreapi(7)

2025-06-05 Lustre User API

lustre 2.17.60-r0 · enterprise-packages · ingested 2026-10-22