vdev_path()

Updated: October 28, 2024

Fill in a PATH_MAX-sized buffer with a path identifying a vdev

Synopsis:

#include <qvm/vdev-core.h>
int vdev_path(const vdev_t *vdp,
              char *buf,
              size_t size)

Arguments:

vdp
A pointer to the vdev for which a path must be obtained.
buf
A pointer to an output buffer.
size
The size of the buffer referenced by buf, in bytes.

Description:

The buf and size arguments are passed to snprintf().

Returns:

The value returned by snprintf().

  翻译: