Stop using ../zfs/libzfs.h but instead use libzfs.h.

While ../zfs/libzfs.h mostly works, there are a few situations where
it does not. Eliminate the problem by using plain libzfs.h, like we do
for ufs support. This fixes the weird cases, and is easier to
understand. It also follows the general style convetion of avoiding
../ in #includes.
This commit is contained in:
Warner Losh 2018-07-08 07:42:58 +00:00
parent b8902de147
commit 007b82d7ab
11 changed files with 11 additions and 9 deletions

View File

@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$");
#include "bootstrap.h"
#ifdef LOADER_ZFS_SUPPORT
#include "../zfs/libzfs.h"
#include "libzfs.h"
#endif
COMMAND_SET(lszfs, "lszfs", "list child datasets of a zfs dataset",

View File

@ -14,6 +14,7 @@ SRCS= biosacpi.c bioscd.c biosdisk.c biosmem.c biospnp.c \
smbios.c time.c vidconsole.c amd64_tramp.S spinconsole.c
.PATH: ${ZFSSRC}
SRCS+= devicename_stubs.c
CFLAGS+= -I${ZFSSRC}
BOOT_COMCONSOLE_PORT?= 0x3f8
CFLAGS+= -DCOMPORT=${BOOT_COMCONSOLE_PORT}

View File

@ -32,7 +32,7 @@ __FBSDID("$FreeBSD$");
#include "bootstrap.h"
#include "disk.h"
#include "libi386.h"
#include "../zfs/libzfs.h"
#include "libzfs.h"
static int i386_parsedev(struct i386_devdesc **dev, const char *devspec, const char **path);

View File

@ -31,7 +31,7 @@ __FBSDID("$FreeBSD$");
#include <bootstrap.h>
#include "libi386/libi386.h"
#if defined(LOADER_ZFS_SUPPORT)
#include "../zfs/libzfs.h"
#include "libzfs.h"
#endif
/*

View File

@ -49,7 +49,7 @@ __FBSDID("$FreeBSD$");
#include "btxv86.h"
#ifdef LOADER_ZFS_SUPPORT
#include "../zfs/libzfs.h"
#include "libzfs.h"
#endif
CTASSERT(sizeof(struct bootargs) == BOOTARGS_SIZE);

View File

@ -9,6 +9,7 @@ SRCS= devicename.c ofw_console.c ofw_copy.c ofw_disk.c \
ofw_time.c openfirm.c
.PATH: ${ZFSSRC}
SRCS+= devicename_stubs.c
CFLAGS+= -I${ZFSSRC}
# Pick up the bootstrap header for some interface items
CFLAGS+= -I${LDRSRC}

View File

@ -31,7 +31,7 @@ __FBSDID("$FreeBSD$");
#include "bootstrap.h"
#include "libofw.h"
#include "../zfs/libzfs.h"
#include "libzfs.h"
static int ofw_parsedev(struct ofw_devdesc **, const char *, const char **);

View File

@ -53,7 +53,7 @@ __FBSDID("$FreeBSD$");
#include <sys/types.h>
#ifdef LOADER_ZFS_SUPPORT
#include <sys/vtoc.h>
#include "../zfs/libzfs.h"
#include "libzfs.h"
#endif
#include <vm/vm.h>

View File

@ -39,7 +39,7 @@ __FBSDID("$FreeBSD$");
#include "libuserboot.h"
#if defined(USERBOOT_ZFS_SUPPORT)
#include "../zfs/libzfs.h"
#include "libzfs.h"
#endif
/*

View File

@ -35,7 +35,7 @@ __FBSDID("$FreeBSD$");
#include "libuserboot.h"
#if defined(USERBOOT_ZFS_SUPPORT)
#include "../zfs/libzfs.h"
#include "libzfs.h"
#endif
static int userboot_parsedev(struct disk_devdesc **dev, const char *devspec, const char **path);

View File

@ -38,7 +38,7 @@ __FBSDID("$FreeBSD$");
#include "libuserboot.h"
#if defined(USERBOOT_ZFS_SUPPORT)
#include "../zfs/libzfs.h"
#include "libzfs.h"
static void userboot_zfs_probe(void);
static int userboot_zfs_found;