libnvmf_context_set_persistent-libnvme3(2)

libnvmf_context_set_persistent-libnvme32

Set the discovery controller persistence mode

Usage

int libnvmf_context_set_persistent (struct libnvmf_context *fctx , const char *persistent );

Arguments

fctx

Fabrics context

persistent

One of "no", "auto", "force" (case-insensitive)

Overview

"auto" persists a Discovery Log Page entry's connection only where that entry's own EPCSD flag (see enum nvmf_disc_eflags) reports support for it; "force" persists regardless of what EPCSD reports; "no" never persists.

Return

0 on success, -EINVAL if fctx is NULL or persistent matches none of the accepted values.

From nvme-cli 3.2-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.