mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-03-10 20:36:21 +03:00
libzpool: remove global libzpool includes
Only include the zfs headers where they're currently required to compile. Unfortunately, including zfs_ioctl.h in user space pulls in a bunch of internal zfs headers as a side effect. We'll need to move these structures in to a new shared header to avoid this. We should not need to add the LIBZPOOL_CPPFLAGS when building the zed, zinject, zpool, libzfs, ior libzfs_core. Sponsored-by: https://despairlabs.com/sponsor/ Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rob Norris <robn@despairlabs.com> Closes #17861
This commit is contained in:
parent
99d7453b43
commit
913bdbf4d1
@ -29,7 +29,12 @@
|
||||
* Copyright (c) 2014 by Delphix. All rights reserved.
|
||||
*/
|
||||
|
||||
#include <sys/zfs_context.h>
|
||||
#include <sys/sysmacros.h>
|
||||
#include <sys/timer.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/thread.h>
|
||||
#include <sys/taskq.h>
|
||||
#include <sys/kmem.h>
|
||||
|
||||
int taskq_now;
|
||||
taskq_t *system_taskq;
|
||||
|
||||
@ -19,7 +19,6 @@
|
||||
* Copyright 2020 Joyent, Inc.
|
||||
*/
|
||||
|
||||
#include <sys/zfs_context.h>
|
||||
#include <sys/fs/zfs.h>
|
||||
#include <sys/dsl_crypt.h>
|
||||
#include <libintl.h>
|
||||
|
||||
@ -4,7 +4,6 @@ libzpool_la_CFLAGS = $(AM_CFLAGS) $(KERNEL_CFLAGS) $(LIBRARY_CFLAGS)
|
||||
libzpool_la_CFLAGS += $(ZLIB_CFLAGS)
|
||||
|
||||
libzpool_la_CPPFLAGS = $(AM_CPPFLAGS) $(LIBZPOOL_CPPFLAGS)
|
||||
libzpool_la_CPPFLAGS += -I$(srcdir)/include/os/@ac_system_l@/zfs
|
||||
libzpool_la_CPPFLAGS += -DLIB_ZPOOL_BUILD
|
||||
|
||||
lib_LTLIBRARIES += libzpool.la
|
||||
|
||||
@ -60,7 +60,6 @@ scripts_zfs_tests_bin_PROGRAMS += %D%/file_append %D%/file_check %D%/file_trunc
|
||||
|
||||
|
||||
scripts_zfs_tests_bin_PROGRAMS += %D%/libzfs_input_check
|
||||
%C%_libzfs_input_check_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/include/os/@ac_system_l@/zfs
|
||||
%C%_libzfs_input_check_LDADD = \
|
||||
libzfs_core.la \
|
||||
libnvpair.la
|
||||
|
||||
@ -22,11 +22,12 @@
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
#include <libzfs.h>
|
||||
#include <sys/zfs_ioctl.h>
|
||||
#include <sys/nvpair.h>
|
||||
#include <sys/fm/protocol.h>
|
||||
#include <sys/fm/fs/zfs.h>
|
||||
|
||||
#define ZEVENT_NONBLOCK 0x1
|
||||
|
||||
/*
|
||||
* Command to output io and checksum ereport values, one per line.
|
||||
* Used by zpool_events_duplicates.ksh to check for duplicate events.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user