libnvmf_exclusion_entry_valid-libnvme32
Validate an entry string.
Usage
bool libnvmf_exclusion_entry_valid
(struct
libnvme_global_ctx
*ctx
,
const
char
*entry
);
Arguments
- ctx
-
libnvme global context; must not be NULL
- entry
-
Exclusion entry, e.g. "transport=tcp;traddr=1.2.3.4".
Overview
Returns true when every key is known and the entry has at least one recognized field; false for unknown/bare keys or an empty/field-less entry. Use this to pre-validate a hand-edited entry before writing it.
Return
true if the entry is valid, false otherwise.