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?

Bill Sommerfeld wrote:
On Wed, 2006-08-16 at 11:49 -0400, Eric Enright wrote:
On 8/16/06, William Fretts-Saxton <[EMAIL PROTECTED]> wrote:
I'm having trouble finding information on any hooks into ZFS. Is there information on a ZFS API so I can access ZFS information directly as opposed to having to constantly parse 'zpool' and 'zfs' command output?
libzfs: http://cvs.opensolaris.org/source/xref/on/usr/src/lib/libzfs/common/

Careful -- this isn't an API -- it's part of the implementation of ZFS,
and as a result it is subject to incompatible change at any time without
advanced warning.

In terms of our Interface Taxonomy, this is considered "Project
Private".
If you have specific requirements for a programmatic interface to ZFS,
let's hear them...  it's not uncommon for Private interfaces to get put
through some renovation and housecleaning and then promoted to a public
interface, but it's best for the conversation to happen first...

(And I can't speak for the plans/intentions of the core zfs team on
this..)

                                                - Bill






_______________________________________________
zfs-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to