[zfs-discuss] Public ZFS API ?

Darren J Moffat
Wed, 18 Mar 2009 10:46:40 -0000

Ian Collins wrote:
> Cherry Shu wrote:
>> Are any plans for an API that would allow ZFS commands including
>> snapshot/rollback integrated with customer''s application?
>>
> libzfs.h?

The API in there is Contracted Consolidation Private.  Note that private
does not mean hidden it means:

      Private

          A Private interface is an interface provided by  a  com-
          ponent  (or  product)  intended only for the use of that
          component. A Private interface might still be visible to
          or  accessible  by  other components. Because the use of
          interfaces private to another  component  carries  great
          stability  risks,  such use is explicitly not supported.
          Components not supplied by Sun Microsystems  should  not
          use Private interfaces.

          Most Private interfaces are not  documented.  It  is  an
          exceptional case when a Private interface is documented.
          Reasons for documenting a Private interface include, but
          are  not  limited  to,  the intention that the interface
          might be reclassified to one  of  the  public  stability
          level classifications in the future or the fact that the
          interface is inordinately visible.

That "not suppied by Sun Microsystems" should change to be not
included
as part of the OpenSolaris distribution.

--
Darren J Moffat