[zfs-discuss] ZFS APIs?

Amanda Waite
2008-09-15T12:46:58Z

The "we" in this case is a partner that we met with recently. They are
interested in ZFS and they are also very much API oriented and naturally
asked how they would go about managing ZFS filesystems remotely via an API.

It seems that the key is libzfs, any plans to publish this as a stable
API? Everyone seems to be using it.

Thanks

Amanda

 Darren J Moffat wrote:
> Amanda Waite wrote:
>> Are there any hooks or APIs available or in the pipeline for
>> creating, destroying and otherwise managing ZFS pools and
>> filesystems? We would very much like to be able to create and
>> tear-down zfs filesystems and to manage snapshots and clones
>> programmatically. We can do this by calling the zfs admin commands
>> via Runtime.exec() in Java, but it''s something that''s
just crying out
>> for a stable/documented API.
>
> There are in libzfs BUT they are private at this time.  There is even
> a JNI wrapper library libzfs_jni that is used by the Lockhart GUI.
>
> Who is the "we" in this case ? What project is this for ?
>