[Bug 257222] Cannot use libzfs.h from user space programs due to missing libnvpair.h and other dependencies
Date: Thu, 09 Sep 2021 04:38:14 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257222
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 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.