On Wed, Aug 16, 2006 at 01:44:48PM -0400, William Fretts-Saxton wrote:
> Perhaps this JNI code is what I'm looking for?
>
> http://cvs.opensolaris.org/source/xref/on/usr/src/lib/libzfs_jni/
>
> It says the ZFS GUI uses this so, I'm assuming, anyone could. Although
> I am a Java programmer, I have ZERO experience with JNI. Am I on the
> right track?
This is another private API, albeit one written in Java. Unlike the
DTrace JNI, this is a private interface between libzfs and the ZFS GUI.
By nature of being cross-consolidation, it will likely change less
frequently than the libzfs interface (hence putting it in ON in the
first plcae). However, it is still a private interface and subject to
incompatible change at any point.
For ZFS status, the CLI was intentionally designed ('zfs list -H', 'zfs
get -H') to be parsable, and that is the only stable interface for doing
so. For pool status, we don't currently have any stable, parsable,
output. There is an RFE open for this, but I don't have the BugID
handy.
I would imagine that the libzfs API would be made public at some point,
but we need to wait for a variety of other RFEs to be implemented.
Nearly every new feature (and even some bugfixes) ends up making
incompatible changes to the API - it is still evolving. Once we are
satisfied with the set of supported features, we can think about
publicizing the API. But I would not expect this to occur for at least
another year.
- Eric
--
Eric Schrock, Solaris Kernel Development http://blogs.sun.com/eschrock
_______________________________________________
zfs-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss