LLAPI\_LOV\_STRING\_PATTERN(3) Lustre Library Functions LLAPI\_LOV\_STRING\_PATTERN(3)

# [NAME](#NAME)

llapi\_lov\_string\_pattern - convert pattern name string to LOV\_PATTERN mask

# [SYNOPSIS](#SYNOPSIS)

```
#include <lustre/lustreapi.h>
```

```
int llapi_lov_string_pattern(const char *string, enum lov_pattern *pattern);
```

# [DESCRIPTION](#DESCRIPTION)

**llapi\_lov\_string\_pattern()** converts the comma-separated list of LOV pattern names in *string* to a mask of **LOV\_PATTERN\_\*** flags returned in *pattern*.

# [RETURN VALUES](#RETURN_VALUES)

**llapi\_lov\_string\_pattern(**) returns 0 on success, or **-EINVAL** on failure (in which case, errno is set appropriately).

# [AVAILABILITY](#AVAILABILITY)

**llapi\_lov\_string\_pattern**() is part of the [**lustre**(7)](/man/enterprise-packages/lustre/lustre.7) user application interface library since release 2.17.0

# [SEE ALSO](#SEE_ALSO)

[**llapi\_lov\_pattern\_string**(3)](/man/enterprise-packages/lustre/llapi_lov_pattern_string.3), [**lustre**(7)](/man/enterprise-packages/lustre/lustre.7), [**lustreapi**(7)](/man/enterprise-packages/lustre/lustreapi.7)

2025-06-04 Lustre User API

---

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