Re: [zfs-discuss] Obtaining zpool volume size from a C coded application.

2010-01-31 Thread Petros Koutoupis
Ian, Thank you very much for your response. On Friday, as I was writing my post, I was navigating through the zpool user land binary's source code and had observed that method. I was just hoping that there was some other and simpler way. I guess not. Unless the time was taken to patch ZFS with

[zfs-discuss] Obtaining zpool volume size from a C coded application.

2010-01-29 Thread Petros Koutoupis
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/s