nbd_get_strict_mode3
See which strictness flags are in effect
Usage
#include <libnbd.h>uint32_t nbd_get_strict_mode (struct nbd_handle *h);
Overview
Return flags indicating which protocol strictness items are being enforced locally by libnbd rather than the server. The return value from a newer library version may include bits that were undefined at the time of compilation.
Return value
This call returns a bitmask of LIBNBD_STRICT_* values.
Errors
This function does not fail.
The following parameters must not be NULL: "h". For more information see "Non-NULL parameters" in libnbd(3).
Version
This function first appeared in libnbd 1.6.
If you need to test if this function is available at compile time check if the following macro is defined:
#define LIBNBD_HAVE_NBD_GET_STRICT_MODE 1
Releases
4 releases since Debian 11 (Bullseye); the text changed 3 times.