Deleted Added
full compact
spa_misc.c (283291) spa_misc.c (284304)
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, 2014 by Delphix. All rights reserved.
23 * Copyright (c) 2011, 2015 by Delphix. All rights reserved.
24 * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
25 * Copyright 2013 Martin Matuska <mm@FreeBSD.org>. All rights reserved.
26 */
27
28#include <sys/zfs_context.h>
29#include <sys/spa_impl.h>
30#include <sys/spa_boot.h>
31#include <sys/zio.h>

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

714
715 if (spa->spa_label_features == NULL) {
716 VERIFY(nvlist_alloc(&spa->spa_label_features, NV_UNIQUE_NAME,
717 KM_SLEEP) == 0);
718 }
719
720 spa->spa_debug = ((zfs_flags & ZFS_DEBUG_SPA) != 0);
721
24 * Copyright 2011 Nexenta Systems, Inc. All rights reserved.
25 * Copyright 2013 Martin Matuska <mm@FreeBSD.org>. All rights reserved.
26 */
27
28#include <sys/zfs_context.h>
29#include <sys/spa_impl.h>
30#include <sys/spa_boot.h>
31#include <sys/zio.h>

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

714
715 if (spa->spa_label_features == NULL) {
716 VERIFY(nvlist_alloc(&spa->spa_label_features, NV_UNIQUE_NAME,
717 KM_SLEEP) == 0);
718 }
719
720 spa->spa_debug = ((zfs_flags & ZFS_DEBUG_SPA) != 0);
721
722 spa->spa_min_ashift = INT_MAX;
723 spa->spa_max_ashift = 0;
724
722 /*
723 * As a pool is being created, treat all features as disabled by
724 * setting SPA_FEATURE_DISABLED for all entries in the feature
725 * refcount cache.
726 */
727 for (int i = 0; i < SPA_FEATURES; i++) {
728 spa->spa_feat_refcount_cache[i] = SPA_FEATURE_DISABLED;
729 }

--- 1333 unchanged lines hidden ---
725 /*
726 * As a pool is being created, treat all features as disabled by
727 * setting SPA_FEATURE_DISABLED for all entries in the feature
728 * refcount cache.
729 */
730 for (int i = 0; i < SPA_FEATURES; i++) {
731 spa->spa_feat_refcount_cache[i] = SPA_FEATURE_DISABLED;
732 }

--- 1333 unchanged lines hidden ---