[Bug 257222] Cannot use libzfs.h from user space programs due to missing libnvpair.h and other dependencies

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 09 Sep 2021 04:38:14 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257222

Alan Somers <asomers_at_FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |Works As Intended
             Status|New                         |Closed
                 CC|                            |asomers_at_FreeBSD.org

--- Comment #1 from Alan Somers <asomers_at_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 similar
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 headers.

-- 
You are receiving this mail because:
You are the assignee for the bug.
Received on Thu Sep 09 2021 - 04:38:14 UTC

Original text of this message