Deleted Added
full compact
spa.h (324010) spa.h (331397)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 11 unchanged lines hidden (view full) ---

20 */
21/*
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
23 * Copyright (c) 2011, 2016 by Delphix. All rights reserved.
24 * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
25 * Copyright (c) 2014 Spectra Logic Corporation, All rights reserved.
26 * Copyright 2013 Saso Kiselkov. All rights reserved.
27 * Copyright (c) 2014 Integros [integros.com]
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 11 unchanged lines hidden (view full) ---

20 */
21/*
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
23 * Copyright (c) 2011, 2016 by Delphix. All rights reserved.
24 * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
25 * Copyright (c) 2014 Spectra Logic Corporation, All rights reserved.
26 * Copyright 2013 Saso Kiselkov. All rights reserved.
27 * Copyright (c) 2014 Integros [integros.com]
28 * Copyright 2017 Joyent, Inc.
28 * Copyright (c) 2017 Datto Inc.
29 */
30
31#ifndef _SYS_SPA_H
32#define _SYS_SPA_H
33
34#include <sys/avl.h>
35#include <sys/zfs_context.h>

--- 857 unchanged lines hidden (view full) ---

893
894/* properties */
895extern int spa_prop_set(spa_t *spa, nvlist_t *nvp);
896extern int spa_prop_get(spa_t *spa, nvlist_t **nvp);
897extern void spa_prop_clear_bootfs(spa_t *spa, uint64_t obj, dmu_tx_t *tx);
898extern void spa_configfile_set(spa_t *, nvlist_t *, boolean_t);
899
900/* asynchronous event notification */
29 * Copyright (c) 2017 Datto Inc.
30 */
31
32#ifndef _SYS_SPA_H
33#define _SYS_SPA_H
34
35#include <sys/avl.h>
36#include <sys/zfs_context.h>

--- 857 unchanged lines hidden (view full) ---

894
895/* properties */
896extern int spa_prop_set(spa_t *spa, nvlist_t *nvp);
897extern int spa_prop_get(spa_t *spa, nvlist_t **nvp);
898extern void spa_prop_clear_bootfs(spa_t *spa, uint64_t obj, dmu_tx_t *tx);
899extern void spa_configfile_set(spa_t *, nvlist_t *, boolean_t);
900
901/* asynchronous event notification */
901extern void spa_event_notify(spa_t *spa, vdev_t *vdev, const char *name);
902extern void spa_event_notify(spa_t *spa, vdev_t *vdev, nvlist_t *hist_nvl,
903 const char *name);
902
903#ifdef ZFS_DEBUG
904#define dprintf_bp(bp, fmt, ...) do { \
905 if (zfs_flags & ZFS_DEBUG_DPRINTF) { \
906 char *__blkbuf = kmem_alloc(BP_SPRINTF_LEN, KM_SLEEP); \
907 snprintf_blkptr(__blkbuf, BP_SPRINTF_LEN, (bp)); \
908 dprintf(fmt " %s\n", __VA_ARGS__, __blkbuf); \
909 kmem_free(__blkbuf, BP_SPRINTF_LEN); \

--- 20 unchanged lines hidden ---
904
905#ifdef ZFS_DEBUG
906#define dprintf_bp(bp, fmt, ...) do { \
907 if (zfs_flags & ZFS_DEBUG_DPRINTF) { \
908 char *__blkbuf = kmem_alloc(BP_SPRINTF_LEN, KM_SLEEP); \
909 snprintf_blkptr(__blkbuf, BP_SPRINTF_LEN, (bp)); \
910 dprintf(fmt " %s\n", __VA_ARGS__, __blkbuf); \
911 kmem_free(__blkbuf, BP_SPRINTF_LEN); \

--- 20 unchanged lines hidden ---