Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Sep 2021 04:38:14 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 257222] Cannot use libzfs.h from user space programs due to missing libnvpair.h and other dependencies
Message-ID:  <bug-257222-227-AG0A969aKA@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-257222-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-257222-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257222

Alan Somers <asomers@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |Works As Intended
             Status|New                         |Closed
                 CC|                            |asomers@FreeBSD.org

--- Comment #1 from Alan Somers <asomers@FreeBSD.org> ---
The thing about libzfs is that it is not a stable interface.  It was never
intended to be one, and never has been.  It changes frequently, and in
non-backwards compatible ways.  That's why its use is highly discouraged by
programs outside of the base system.  The few that do use it
(sysutils/py-iocage for example) typically break during an OS upgrade.

libzfs_core, OTOH, _is_ a stable interface.  It has a simple API, very simi=
lar
to what the zfs command line tools provide.  And it's guaranteed to preserve
backwards compatibility.  I suggest you convert your program to use libzfs_=
core
instead of libzfs.  If you don't, you'll continue to need the kernel header=
s.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-257222-227-AG0A969aKA>