Reference

libnvmf_context_set_persistent-libnvme3(2)

Set the discovery controller persistence mode

NAME

libnvmf_context_set_persistent - Set the discovery controller persistence mode

SYNOPSIS

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

ARGUMENTS

fctx

Fabrics context

persistent

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

DESCRIPTION

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