zfs.c (fa9e4066) zfs.c (088e9d47)
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, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

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

1369 if (!(flags & DCMD_ADDRSPEC))
1370 return (DCMD_USAGE);
1371
1372 if (mdb_vread(&spa, sizeof (spa), addr) == -1) {
1373 mdb_warn("failed to read spa_t at %p", addr);
1374 return (DCMD_ERR);
1375 }
1376
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, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

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

1369 if (!(flags & DCMD_ADDRSPEC))
1370 return (DCMD_USAGE);
1371
1372 if (mdb_vread(&spa, sizeof (spa), addr) == -1) {
1373 mdb_warn("failed to read spa_t at %p", addr);
1374 return (DCMD_ERR);
1375 }
1376
1377 /*
1378 * Unitialized spa_t structures can have a NULL root vdev.
1379 */
1380 if (spa.spa_root_vdev == NULL) {
1381 mdb_printf("no associated vdevs\n");
1382 return (DCMD_OK);
1383 }
1384
1377 v.a_type = MDB_TYPE_STRING;
1378 v.a_un.a_str = errors ? "-re" : "-r";
1379
1380 return (mdb_call_dcmd("vdev", (uintptr_t)spa.spa_root_vdev,
1381 flags, 1, &v));
1382}
1383
1384typedef struct txg_list_walk_data {

--- 210 unchanged lines hidden ---
1385 v.a_type = MDB_TYPE_STRING;
1386 v.a_un.a_str = errors ? "-re" : "-r";
1387
1388 return (mdb_call_dcmd("vdev", (uintptr_t)spa.spa_root_vdev,
1389 flags, 1, &v));
1390}
1391
1392typedef struct txg_list_walk_data {

--- 210 unchanged lines hidden ---