Bug 149173 - [patch] [zfs] make OpenSolaris <sys/nvpair.h> installable
Summary: [patch] [zfs] make OpenSolaris <sys/nvpair.h> installable
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 1.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2010-08-01 13:10 UTC by Robert Millan
Modified: 2021-02-21 12:22 UTC (History)
1 user (show)

See Also:

file.diff (868 bytes, patch)
2010-08-01 13:10 UTC, Robert Millan
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Millan 2010-08-01 13:10:03 UTC
This patch makes OpenSolaris <sys/nvpair.h> buildable outside the compatibility environment, so that it can be installed system-wide, along with <libnvpair.h>, making it easier for third party apps to link with libnvpair.

It's been forwarded to OpenSolaris BTS already:
- https://defect.opensolaris.org/bz/show_bug.cgi?id=16697#c0

See also the discussion on GRUB list [1] about this problem:
- http://osdir.com/ml/grub-devel-gnu/2010-07/msg00263.html

[1] I'm in the process of adding support to GRUB for booting from ZFS

Fix: Patch attached with submission follows:
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2010-08-01 17:41:53 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Over to maintainer(s).
Comment 2 Martin Matuska freebsd_committer 2012-09-06 14:27:34 UTC
If this wasn't imported into OpenSolaris I suggest a illumos issue gets

Martin Matuska
FreeBSD committer
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:17 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 4 David Chisnall freebsd_committer 2021-02-21 12:22:21 UTC
We seem to have ended up in the worst of all possible worlds here.  We have files like nvpair.h and libzfs_core.h installed, but they depend on Solaris compat headers that are *not* installed.  Worse, we have a libnv.h that exposes an nvlist_t that looks like the one that libzfs_core.h uses, but is not actually compatible.