Deleted Added
full compact
spa.h (222950) spa.h (224177)
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

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

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
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

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

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
23 * Copyright (c) 2011 by Delphix. All rights reserved.
23 */
24
25#ifndef _SYS_SPA_H
26#define _SYS_SPA_H
27
28#include <sys/avl.h>
29#include <sys/zfs_context.h>
30#include <sys/nvpair.h>

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

693 dprintf(fmt " %s\n", __VA_ARGS__, __blkbuf); \
694 kmem_free(__blkbuf, BP_SPRINTF_LEN); \
695 } \
696_NOTE(CONSTCOND) } while (0)
697#else
698#define dprintf_bp(bp, fmt, ...)
699#endif
700
24 */
25
26#ifndef _SYS_SPA_H
27#define _SYS_SPA_H
28
29#include <sys/avl.h>
30#include <sys/zfs_context.h>
31#include <sys/nvpair.h>

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

694 dprintf(fmt " %s\n", __VA_ARGS__, __blkbuf); \
695 kmem_free(__blkbuf, BP_SPRINTF_LEN); \
696 } \
697_NOTE(CONSTCOND) } while (0)
698#else
699#define dprintf_bp(bp, fmt, ...)
700#endif
701
702extern boolean_t spa_debug_enabled(spa_t *spa);
703#define spa_dbgmsg(spa, ...) \
704{ \
705 if (spa_debug_enabled(spa)) \
706 zfs_dbgmsg(__VA_ARGS__); \
707}
708
701extern int spa_mode_global; /* mode, e.g. FREAD | FWRITE */
702
703#ifdef __cplusplus
704}
705#endif
706
707#endif /* _SYS_SPA_H */
709extern int spa_mode_global; /* mode, e.g. FREAD | FWRITE */
710
711#ifdef __cplusplus
712}
713#endif
714
715#endif /* _SYS_SPA_H */