vdev_path()

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.

Library:

Provided by qvm; no external library is required.

Description:

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

Returns:

The value returned by snprintf().