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. Thanks Amanda -------------- next part -------------- A non-text attachment was scrubbed... Name: amanda_waite.vcf Type: text/x-vcard Size: 179 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20080915/3ea8b6c9/attachment.vcf>
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. > > Thanks > > Amanda > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >Take a look at https://zfs.dev.java.net/ Regards, Jay -------------- next part -------------- A non-text attachment was scrubbed... Name: jay_danielsen.vcf Type: text/x-vcard Size: 211 bytes Desc: not available URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20080915/477b0b26/attachment.vcf> -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3253 bytes Desc: S/MIME Cryptographic Signature URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20080915/477b0b26/attachment.bin>
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 ? -- Darren J Moffat
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 ? >