Deleted Added
full compact
spa_misc.c (321547) spa_misc.c (321553)
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, 2015 by Delphix. All rights reserved.
23 * Copyright (c) 2011, 2017 by Delphix. All rights reserved.
24 * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
25 * Copyright 2013 Martin Matuska <mm@FreeBSD.org>. All rights reserved.
26 * Copyright (c) 2014 Spectra Logic Corporation, All rights reserved.
27 * Copyright 2013 Saso Kiselkov. All rights reserved.
28 * Copyright (c) 2014 Integros [integros.com]
29 */
30
31#include <sys/zfs_context.h>

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

739 /*
740 * Set the alternate root, if there is one.
741 */
742 if (altroot) {
743 spa->spa_root = spa_strdup(altroot);
744 spa_active_count++;
745 }
746
24 * Copyright 2015 Nexenta Systems, Inc. All rights reserved.
25 * Copyright 2013 Martin Matuska <mm@FreeBSD.org>. All rights reserved.
26 * Copyright (c) 2014 Spectra Logic Corporation, All rights reserved.
27 * Copyright 2013 Saso Kiselkov. All rights reserved.
28 * Copyright (c) 2014 Integros [integros.com]
29 */
30
31#include <sys/zfs_context.h>

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

739 /*
740 * Set the alternate root, if there is one.
741 */
742 if (altroot) {
743 spa->spa_root = spa_strdup(altroot);
744 spa_active_count++;
745 }
746
747 avl_create(&spa->spa_alloc_tree, zio_timestamp_compare,
747 avl_create(&spa->spa_alloc_tree, zio_bookmark_compare,
748 sizeof (zio_t), offsetof(zio_t, io_alloc_node));
749
750 /*
751 * Every pool starts with the default cachefile
752 */
753 list_create(&spa->spa_config_list, sizeof (spa_config_dirent_t),
754 offsetof(spa_config_dirent_t, scd_link));
755

--- 1431 unchanged lines hidden ---
748 sizeof (zio_t), offsetof(zio_t, io_alloc_node));
749
750 /*
751 * Every pool starts with the default cachefile
752 */
753 list_create(&spa->spa_config_list, sizeof (spa_config_dirent_t),
754 offsetof(spa_config_dirent_t, scd_link));
755

--- 1431 unchanged lines hidden ---