[cross posting is probably better than muli-posts]

Petros Koutoupis wrote:
> As I was navigating through the source code for the ZFS file system I saw 
> that in zvol.c where the ioctls are defined, if a program sends a DKIOCGGEOM 
> or DKIOCDVTOV, an ENOTSUP (Error Not Supported) is returned.
>
> You can view this here: 
> http://src.opensolaris.org/source/xref/onnv/onnv-gate/usr/src/uts/common/fs/zfs/zvol.c
>
> My question is, what is an appropriate method to obtain the zpool's volume 
> size from a C coded application?
>   
I use zprop_get_list and zfs_prop_get form libzfs to read and parse zfs 
properties.  There may be a more direct way, but zprop_get_list appears 
to be the generic solution.

-- 
Ian.

Reply via email to