Deleted Added
full compact
zdb.c (269118) zdb.c (272598)
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

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

2589 zcb.zcb_haderrors |= traverse_pool(spa, 0, flags, zdb_blkptr_cb, &zcb);
2590
2591 /*
2592 * If we've traversed the data blocks then we need to wait for those
2593 * I/Os to complete. We leverage "The Godfather" zio to wait on
2594 * all async I/Os to complete.
2595 */
2596 if (dump_opt['c']) {
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

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

2589 zcb.zcb_haderrors |= traverse_pool(spa, 0, flags, zdb_blkptr_cb, &zcb);
2590
2591 /*
2592 * If we've traversed the data blocks then we need to wait for those
2593 * I/Os to complete. We leverage "The Godfather" zio to wait on
2594 * all async I/Os to complete.
2595 */
2596 if (dump_opt['c']) {
2597 (void) zio_wait(spa->spa_async_zio_root);
2598 spa->spa_async_zio_root = zio_root(spa, NULL, NULL,
2599 ZIO_FLAG_CANFAIL | ZIO_FLAG_SPECULATIVE |
2600 ZIO_FLAG_GODFATHER);
2597 for (int i = 0; i < max_ncpus; i++) {
2598 (void) zio_wait(spa->spa_async_zio_root[i]);
2599 spa->spa_async_zio_root[i] = zio_root(spa, NULL, NULL,
2600 ZIO_FLAG_CANFAIL | ZIO_FLAG_SPECULATIVE |
2601 ZIO_FLAG_GODFATHER);
2602 }
2601 }
2602
2603 if (zcb.zcb_haderrors) {
2604 (void) printf("\nError counts:\n\n");
2605 (void) printf("\t%5s %s\n", "errno", "count");
2606 for (int e = 0; e < 256; e++) {
2607 if (zcb.zcb_errors[e] != 0) {
2608 (void) printf("\t%5d %llu\n",

--- 1025 unchanged lines hidden ---
2603 }
2604
2605 if (zcb.zcb_haderrors) {
2606 (void) printf("\nError counts:\n\n");
2607 (void) printf("\t%5s %s\n", "errno", "count");
2608 for (int e = 0; e < 256; e++) {
2609 if (zcb.zcb_errors[e] != 0) {
2610 (void) printf("\t%5d %llu\n",

--- 1025 unchanged lines hidden ---