Challa, Narsimha Reddy (STSD-HYD)
2009-Jul-05 16:04 UTC
[zfs-discuss] Solaris ZFS native API publicly available??
Hi All, I would like to know whether the ZFS native API for SunOS (http://www.opensolaris.org/os/community/zfs/source/) is publicly available now? I see in some old mailing lists (2 years old) that they were not publicly available. Is this still true? Also I see there is a java API available at https://zfs.dev.java.net/apidocs/org/jvnet/solaris/libzfs/LibZFS.html & https://zfs.dev.java.net/apidocs/org/jvnet/solaris/libzfs/jna/libzfs.html. Is this a public API that I can rely on? My requirement is to retrieve the information about ZFS pools like disks, volumes, snapshots, clones etc. and their status. AFAIK, the CLI commands that can satisfy my requirement are the "zpool status" & "zfs get -H". I would like to know whether these commands output can be consistent across Solaris versions so that I can write a parser to retrieve the required information? Otherwise please suggest if there is any other better method to collect the information is available. ========# zpool status pool: pool_a state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM pool_a ONLINE 0 0 0 c3t600508B400105FE80002B00000710000d0 ONLINE 0 0 0 spares c3t600508B400105FE80002B000006B0000d0 AVAIL errors: No known data errors pool: pool_b state: ONLINE scrub: none requested config: NAME STATE READ WRITE CKSUM pool_b ONLINE 0 0 0 mirror ONLINE 0 0 0 c3t600508B400105FE80002B00000770000d0 ONLINE 0 0 0 c3t600508B400105FE80002B000007D0000d0 ONLINE 0 0 0 errors: No known data errors ========== Thanks & Regards, -Narsimha -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20090705/1b680e36/attachment.html>
Maybe Matching Threads
- [LLVMdev] RFC: Replacing publicly accessible class IDs with getters
- Making the playlist history publicly accessible.
- [LLVMdev] RFC: Replacing publicly accessible class IDs with getters
- Why I responded publicly [WAS: admin console]
- [LLVMdev] RFC: Replacing publicly accessible class IDs with getters