svn commit: r289806 - in stable/9: cddl/contrib/opensolaris/lib/libzfs/common cddl/contrib/opensolaris/lib/libzpool/common sys/cddl/contrib/opensolaris/common/nvpair

Andriy Gapon avg at FreeBSD.org
Fri Oct 23 08:05:00 UTC 2015


Author: avg
Date: Fri Oct 23 08:04:59 2015
New Revision: 289806
URL: https://svnweb.freebsd.org/changeset/base/289806

Log:
  MFC r288340: define aok in libnvpair which is linked to all zfs
  libraries that need aok

Modified:
  stable/9/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_util.c
  stable/9/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c
  stable/9/sys/cddl/contrib/opensolaris/common/nvpair/nvpair.c
Directory Properties:
  stable/9/cddl/contrib/opensolaris/   (props changed)
  stable/9/cddl/contrib/opensolaris/lib/libzfs/   (props changed)
  stable/9/sys/   (props changed)
  stable/9/sys/cddl/contrib/opensolaris/   (props changed)

Modified: stable/9/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_util.c
==============================================================================
--- stable/9/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_util.c	Fri Oct 23 08:01:46 2015	(r289805)
+++ stable/9/cddl/contrib/opensolaris/lib/libzfs/common/libzfs_util.c	Fri Oct 23 08:04:59 2015	(r289806)
@@ -55,7 +55,6 @@
 #include "zfs_prop.h"
 #include "zfeature_common.h"
 
-int aok;
 
 int
 libzfs_errno(libzfs_handle_t *hdl)

Modified: stable/9/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c
==============================================================================
--- stable/9/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c	Fri Oct 23 08:01:46 2015	(r289805)
+++ stable/9/cddl/contrib/opensolaris/lib/libzpool/common/kernel.c	Fri Oct 23 08:04:59 2015	(r289806)
@@ -44,7 +44,9 @@
  * Emulation of kernel services in userland.
  */
 
+#ifndef __FreeBSD__
 int aok;
+#endif
 uint64_t physmem;
 vnode_t *rootdir = (vnode_t *)0xabcd1234;
 char hw_serial[HW_HOSTID_LEN];

Modified: stable/9/sys/cddl/contrib/opensolaris/common/nvpair/nvpair.c
==============================================================================
--- stable/9/sys/cddl/contrib/opensolaris/common/nvpair/nvpair.c	Fri Oct 23 08:01:46 2015	(r289805)
+++ stable/9/sys/cddl/contrib/opensolaris/common/nvpair/nvpair.c	Fri Oct 23 08:04:59 2015	(r289806)
@@ -44,6 +44,14 @@
 #endif
 #define	skip_whitespace(p)	while ((*(p) == ' ') || (*(p) == '\t')) p++
 
+#if defined(__FreeBSD__) && !defined(_KERNEL)
+/*
+ * libnvpair is the lowest commen denominator for ZFS related libraries,
+ * defining aok here makes it usable by all ZFS related libraries
+ */
+int aok;
+#endif
+
 /*
  * nvpair.c - Provides kernel & userland interfaces for manipulating
  *	name-value pairs.


More information about the svn-src-stable-9 mailing list