libnvmf_context_set_persistent(9) libnvme API manual libnvmf_context_set_persistent(9)

libnvmf_context_set_persistent - Set the discovery controller persistence mode

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

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

"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.

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

libnvmf_context_set_persistent September 2026