From 6ace6d0b0a48ff6feccaa6e70ba95845a1135b95 Mon Sep 17 00:00:00 2001 From: Xin LI <delphij@FreeBSD.org> Date: Sat, 6 Dec 2014 00:17:25 +0000 Subject: [PATCH] 5312 libzfs should be decoupled from kernel's zfs_context.h Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Will Andrews <willa@spectralogic.com> Reviewed by: Andriy Gapon <avg@FreeBSD.org> Approved by: Dan McDonald <danmcd@omniti.com> Author: Justin T. Gibbs <justing@spectralogic.com> illumos/illumos-gate@587644a8567e6a9533f88401daa59cbd78c4632f --- lib/libzfs/common/sys/zfs_context.h | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 lib/libzfs/common/sys/zfs_context.h diff --git a/lib/libzfs/common/sys/zfs_context.h b/lib/libzfs/common/sys/zfs_context.h new file mode 100644 index 000000000000..a2c69f03f5f2 --- /dev/null +++ b/lib/libzfs/common/sys/zfs_context.h @@ -0,0 +1,37 @@ +/* + * CDDL HEADER START + * + * This file and its contents are supplied under the terms of the + * Common Development and Distribution License ("CDDL"), version 1.0. + * You may only use this file in accordance with the terms of version + * 1.0 of the CDDL. + * + * A full copy of the text of the CDDL should have accompanied this + * source. A copy of the CDDL is also available via the Internet at + * http://www.illumos.org/license/CDDL. + * + * CDDL HEADER END + */ +/* + * Copyright 2014 Spectra Logic Corporation. All rights reserved. + */ + +#ifndef _SYS_ZFS_CONTEXT_H +#define _SYS_ZFS_CONTEXT_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include <sys/stat.h> +#include <sys/taskq.h> +#include <sys/taskq_impl.h> +#include <sys/debug.h> +#include <sys/list.h> +#include <sys/zfs_debug.h> + +#ifdef __cplusplus +} +#endif + +#endif /* _SYS_ZFS_CONTEXT_H */