aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorнаб <[email protected]>2021-05-15 13:00:05 +0200
committerBrian Behlendorf <[email protected]>2021-06-03 13:17:35 -0700
commiteefaa55f6452dcaeb26a8994ecf6aa8af054ab83 (patch)
tree628dceed44145ed8a179b6d42f1fb81bb4eb1f30
parent94f942c658521c9f67955958942014d41a4a7146 (diff)
libzfs: don't distribute libzfs_impl.h
Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Matthew Ahrens <[email protected]> Reviewed-by: John Kennedy <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #12048
-rw-r--r--include/Makefile.am1
-rw-r--r--lib/libshare/libshare.c1
-rw-r--r--lib/libshare/os/freebsd/nfs.c2
-rw-r--r--lib/libzfs/Makefile.am1
-rw-r--r--lib/libzfs/libzfs_impl.h (renamed from include/libzfs_impl.h)0
-rw-r--r--lib/libzfs/libzfs_import.c2
-rw-r--r--lib/libzfs/os/freebsd/libzfs_compat.c2
-rw-r--r--lib/libzfs/os/freebsd/libzfs_zmount.c2
-rw-r--r--lib/libzfs/os/linux/libzfs_mount_os.c2
-rw-r--r--lib/libzfs/os/linux/libzfs_pool_os.c2
-rw-r--r--lib/libzfs/os/linux/libzfs_sendrecv_os.c2
-rw-r--r--lib/libzfs/os/linux/libzfs_util_os.c2
12 files changed, 9 insertions, 10 deletions
diff --git a/include/Makefile.am b/include/Makefile.am
index 17286ecbb..4da43afd8 100644
--- a/include/Makefile.am
+++ b/include/Makefile.am
@@ -17,7 +17,6 @@ USER_H = \
libzfs.h \
libzfsbootenv.h \
libzfs_core.h \
- libzfs_impl.h \
libzutil.h \
thread_pool.h
diff --git a/lib/libshare/libshare.c b/lib/libshare/libshare.c
index d32a282a3..a228645fb 100644
--- a/lib/libshare/libshare.c
+++ b/lib/libshare/libshare.c
@@ -36,7 +36,6 @@
#include <unistd.h>
#include <libzfs.h>
#include <libshare.h>
-#include "libzfs_impl.h"
#include "libshare_impl.h"
#include "nfs.h"
#include "smb.h"
diff --git a/lib/libshare/os/freebsd/nfs.c b/lib/libshare/os/freebsd/nfs.c
index 323c9269f..b82491f2e 100644
--- a/lib/libshare/os/freebsd/nfs.c
+++ b/lib/libshare/os/freebsd/nfs.c
@@ -42,7 +42,7 @@ __FBSDID("$FreeBSD$");
#include <unistd.h>
#include <libintl.h>
-#include "libzfs_impl.h"
+#include <libshare.h>
#include "libshare_impl.h"
#include "nfs.h"
diff --git a/lib/libzfs/Makefile.am b/lib/libzfs/Makefile.am
index 31267fd9a..9385eb1aa 100644
--- a/lib/libzfs/Makefile.am
+++ b/lib/libzfs/Makefile.am
@@ -16,6 +16,7 @@ lib_LTLIBRARIES = libzfs.la
include $(top_srcdir)/config/Abigail.am
USER_C = \
+ libzfs_impl.h \
libzfs_changelist.c \
libzfs_config.c \
libzfs_crypto.c \
diff --git a/include/libzfs_impl.h b/lib/libzfs/libzfs_impl.h
index de6730408..de6730408 100644
--- a/include/libzfs_impl.h
+++ b/lib/libzfs/libzfs_impl.h
diff --git a/lib/libzfs/libzfs_import.c b/lib/libzfs/libzfs_import.c
index 64fa31c67..0d375b355 100644
--- a/lib/libzfs/libzfs_import.c
+++ b/lib/libzfs/libzfs_import.c
@@ -36,7 +36,7 @@
#include <unistd.h>
#include <sys/vdev_impl.h>
#include <libzfs.h>
-#include <libzfs_impl.h>
+#include "libzfs_impl.h"
#include <libzutil.h>
#include <sys/arc_impl.h>
diff --git a/lib/libzfs/os/freebsd/libzfs_compat.c b/lib/libzfs/os/freebsd/libzfs_compat.c
index 3c5f684c6..4d7421df8 100644
--- a/lib/libzfs/os/freebsd/libzfs_compat.c
+++ b/lib/libzfs/os/freebsd/libzfs_compat.c
@@ -23,7 +23,7 @@
* Copyright (c) 2013 Martin Matuska <[email protected]>. All rights reserved.
*/
#include <os/freebsd/zfs/sys/zfs_ioctl_compat.h>
-#include <libzfs_impl.h>
+#include "../../libzfs_impl.h"
#include <libzfs.h>
#include <libzutil.h>
#include <sys/sysctl.h>
diff --git a/lib/libzfs/os/freebsd/libzfs_zmount.c b/lib/libzfs/os/freebsd/libzfs_zmount.c
index 699d330eb..e1febe6a2 100644
--- a/lib/libzfs/os/freebsd/libzfs_zmount.c
+++ b/lib/libzfs/os/freebsd/libzfs_zmount.c
@@ -43,7 +43,7 @@ __FBSDID("$FreeBSD$");
#include <sys/errno.h>
#include <libzfs.h>
-#include "libzfs_impl.h"
+#include "../../libzfs_impl.h"
static void
build_iovec(struct iovec **iov, int *iovlen, const char *name, void *val,
diff --git a/lib/libzfs/os/linux/libzfs_mount_os.c b/lib/libzfs/os/linux/libzfs_mount_os.c
index 21d640538..547895d7e 100644
--- a/lib/libzfs/os/linux/libzfs_mount_os.c
+++ b/lib/libzfs/os/linux/libzfs_mount_os.c
@@ -47,7 +47,7 @@
#include <sys/dsl_crypt.h>
#include <libzfs.h>
-#include "libzfs_impl.h"
+#include "../../libzfs_impl.h"
#include <thread_pool.h>
#define ZS_COMMENT 0x00000000 /* comment */
diff --git a/lib/libzfs/os/linux/libzfs_pool_os.c b/lib/libzfs/os/linux/libzfs_pool_os.c
index 747b5652f..90eb8db50 100644
--- a/lib/libzfs/os/linux/libzfs_pool_os.c
+++ b/lib/libzfs/os/linux/libzfs_pool_os.c
@@ -49,7 +49,7 @@
#include "zfs_namecheck.h"
#include "zfs_prop.h"
-#include "libzfs_impl.h"
+#include "../../libzfs_impl.h"
#include "zfs_comutil.h"
#include "zfeature_common.h"
diff --git a/lib/libzfs/os/linux/libzfs_sendrecv_os.c b/lib/libzfs/os/linux/libzfs_sendrecv_os.c
index ac7ab95a3..593c38ec6 100644
--- a/lib/libzfs/os/linux/libzfs_sendrecv_os.c
+++ b/lib/libzfs/os/linux/libzfs_sendrecv_os.c
@@ -22,7 +22,7 @@
#include <libzfs.h>
-#include "libzfs_impl.h"
+#include "../../libzfs_impl.h"
#ifndef F_SETPIPE_SZ
#define F_SETPIPE_SZ (F_SETLEASE + 7)
diff --git a/lib/libzfs/os/linux/libzfs_util_os.c b/lib/libzfs/os/linux/libzfs_util_os.c
index e2482c571..b116f92d9 100644
--- a/lib/libzfs/os/linux/libzfs_util_os.c
+++ b/lib/libzfs/os/linux/libzfs_util_os.c
@@ -38,7 +38,7 @@
#include <libzfs.h>
#include <libzfs_core.h>
-#include "libzfs_impl.h"
+#include "../../libzfs_impl.h"
#include "zfs_prop.h"
#include <libzutil.h>
#include <sys/zfs_sysfs.h>