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
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
[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
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