Deleted Added
full compact
vdev_label.c (332525) vdev_label.c (332530)
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

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

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/*
23 * 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

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

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/*
23 * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
24 * Copyright (c) 2012, 2015 by Delphix. All rights reserved.
24 * Copyright (c) 2012, 2016 by Delphix. All rights reserved.
25 */
26
27/*
28 * Virtual Device Labels
29 * ---------------------
30 *
31 * The vdev label serves several distinct purposes:
32 *

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

1110 (void) zio_wait(zio);
1111
1112 /*
1113 * It's possible that the best uberblock was discovered on a label
1114 * that has a configuration which was written in a future txg.
1115 * Search all labels on this vdev to find the configuration that
1116 * matches the txg for our uberblock.
1117 */
25 */
26
27/*
28 * Virtual Device Labels
29 * ---------------------
30 *
31 * The vdev label serves several distinct purposes:
32 *

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

1110 (void) zio_wait(zio);
1111
1112 /*
1113 * It's possible that the best uberblock was discovered on a label
1114 * that has a configuration which was written in a future txg.
1115 * Search all labels on this vdev to find the configuration that
1116 * matches the txg for our uberblock.
1117 */
1118 if (cb.ubl_vd != NULL)
1118 if (cb.ubl_vd != NULL) {
1119 vdev_dbgmsg(cb.ubl_vd, "best uberblock found for spa %s. "
1120 "txg %llu", spa->spa_name, (u_longlong_t)ub->ub_txg);
1121
1119 *config = vdev_label_read_config(cb.ubl_vd, ub->ub_txg);
1122 *config = vdev_label_read_config(cb.ubl_vd, ub->ub_txg);
1123 if (*config == NULL) {
1124 vdev_dbgmsg(cb.ubl_vd, "failed to read label config");
1125 }
1126 }
1120 spa_config_exit(spa, SCL_ALL, FTAG);
1121}
1122
1123/*
1124 * On success, increment root zio's count of good writes.
1125 * We only get credit for writes to known-visible vdevs; see spa_vdev_add().
1126 */
1127static void

--- 310 unchanged lines hidden ---
1127 spa_config_exit(spa, SCL_ALL, FTAG);
1128}
1129
1130/*
1131 * On success, increment root zio's count of good writes.
1132 * We only get credit for writes to known-visible vdevs; see spa_vdev_add().
1133 */
1134static void

--- 310 unchanged lines hidden ---