LLAPI\_LMV\_GET\_UUIDS(3) Lustre Library Functions LLAPI\_LMV\_GET\_UUIDS(3)

# [NAME](#NAME)

llapi\_lmv\_get\_uuids, llapi\_lov\_get\_uuids - Get device uuids

# [SYNOPSIS](#SYNOPSIS)

```
#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);"
```

# [DESCRIPTION](#DESCRIPTION)

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 VALUES](#RETURN_VALUES)

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

# [AVAILABILITY](#AVAILABILITY)

**llapi\_lmv\_get\_uuids()**, **llapi\_lov\_get\_uuids()** are part of the [**lustre**(7)](/man/enterprise-packages/lustre/lustre.7) user application interface library since before release 2.17.0

# [SEE ALSO](#SEE_ALSO)

[**llapi\_file\_fget\_lov\_uuid**(3)](/man/enterprise-packages/lustre/llapi_file_fget_lov_uuid.3), [**llapi\_file\_get\_lmv\_uuid**(3)](/man/enterprise-packages/lustre/llapi_file_get_lmv_uuid.3), [**llapi\_file\_get\_lov\_uuid**(3)](/man/enterprise-packages/lustre/llapi_file_get_lov_uuid.3), [**llapi\_get\_obd\_count**(3)](/man/enterprise-packages/lustre/llapi_get_obd_count.3), [**llapi\_search\_ost**(3)](/man/enterprise-packages/lustre/llapi_search_ost.3), [**lustreapi**(7)](/man/enterprise-packages/lustre/lustreapi.7)

2025-06-05 Lustre User API

---

Document: llapi_lov_get_uuids(3) from lustre 2.17.59-r2 (Chainguard OS)
Source: https://github.com/lustre/lustre-release
