Hello folks, I would like to create my own set of tools for manipulating with ZFS, and I need to use the libzfs library. I got stuck with "cannot find include file: libuutil.h" message. I am new to Solaris, and not exactly a C guru. Can you please push me into the righ direction? Thank you. Jozef Hamar
On Wed, Sep 23, 2009 at 9:31 AM, Jozef Hamar <hamar at jozef.name> wrote:> Hello folks, > > I would like to create my own set of tools for manipulating with ZFS, and I > need to use the libzfs library. > > I got stuck with "cannot find include file: libuutil.h" message. I am new to > Solaris, and not exactly a C guru. > > Can you please push me into the righ direction? > > Thank you.Unfortunately, that library is still classified as private (meaning it wasn''t intended for general use). There was talk a few years ago of cleaning it up a bit and making it available for general use, but it appears it was never done. If you still want to use it (basically the rule is if you use stuff marked as ''private'' is that it can change at any time with no notice, though granted in this case I doubt it''s changed much in the past few years), you''ll need to grab a copy from the ON source repository
Jason King wrote:> On Wed, Sep 23, 2009 at 9:31 AM, Jozef Hamar <hamar at jozef.name> wrote: >> Hello folks, >> >> I would like to create my own set of tools for manipulating with ZFS, and I >> need to use the libzfs library. >> >> I got stuck with "cannot find include file: libuutil.h" message. I am new to >> Solaris, and not exactly a C guru. >> >> Can you please push me into the righ direction? >> >> Thank you. > > Unfortunately, that library is still classified as private (meaning it > wasn''t intended for general use). There was talk a few years ago of > cleaning it up a bit and making it available for general use, but it > appears it was never done.But so is libzfs ! -- Darren J Moffat
Ok, so what are the options (or "recommendations") for someone who wants to create a new ZFS filesystem from inside his code (except calling exec on "zfs create"). Do I need to get copies of those source code files (assuming libzfs and libuutil are not the only ones which are private) or is there some other option to create zfs from inside a c code? Thanks. Jozef Hamar Darren J Moffat wrote:> Jason King wrote: >> On Wed, Sep 23, 2009 at 9:31 AM, Jozef Hamar <hamar at jozef.name> wrote: >>> Hello folks, >>> >>> I would like to create my own set of tools for manipulating with >>> ZFS, and I >>> need to use the libzfs library. >>> >>> I got stuck with "cannot find include file: libuutil.h" message. I >>> am new to >>> Solaris, and not exactly a C guru. >>> >>> Can you please push me into the righ direction? >>> >>> Thank you. >> >> Unfortunately, that library is still classified as private (meaning it >> wasn''t intended for general use). There was talk a few years ago of >> cleaning it up a bit and making it available for general use, but it >> appears it was never done. > > But so is libzfs ! >
Jozef Hamar wrote:> Ok, so what are the options (or "recommendations") for someone who > wants to create a new ZFS filesystem from inside his code (except > calling exec on "zfs create"). Do I need to get copies of those source > code files (assuming libzfs and libuutil are not the only ones which are > private) or is there some other option to create zfs from inside a c code?Officially there isn''t any unless your code is part of the ON consolidation of OpenSolaris and/or has an ARC[1] contract for use of the interfaces. That is because these are considered private interfaces. Note that private here has nothing to do with wither or not they are open source or not it doesn''t mean hidden. Unofficially grab the header files from the ON consolidation of OpenSolaris and build way. However be aware that the interfaces in those libraries can and will change without you being warned about it. [1] http://opensolaris.org/os/community/arc/ -- Darren J Moffat
Thank you. Jozef Hamar Darren J Moffat wrote:> Jozef Hamar wrote: >> Ok, so what are the options (or "recommendations") for someone who >> wants to create a new ZFS filesystem from inside his code (except >> calling exec on "zfs create"). Do I need to get copies of those >> source code files (assuming libzfs and libuutil are not the only ones >> which are private) or is there some other option to create zfs from >> inside a c code? > > Officially there isn''t any unless your code is part of the ON > consolidation of OpenSolaris and/or has an ARC[1] contract for use of > the interfaces. That is because these are considered private > interfaces. Note that private here has nothing to do with wither or > not they are open source or not it doesn''t mean hidden. > > Unofficially grab the header files from the ON consolidation of > OpenSolaris and build way. However be aware that the interfaces in > those libraries can and will change without you being warned about it. > > > [1] http://opensolaris.org/os/community/arc/ >