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

2010-02-02 Thread Eric C. Taylor
You can use the DKIOCGMEDIAINFO ioctl to get this information. - Eric -- This message posted from opensolaris.org ___ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

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

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

2010-01-30 Thread Ian Collins
[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 ca

[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