diff options
author | Brian Behlendorf <[email protected]> | 2009-01-15 15:40:39 -0800 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2009-01-15 15:40:39 -0800 |
commit | 975c613269660505225ea877290d72e603edd164 (patch) | |
tree | 9b259da32c992dcd33e59dd58e6668370efa31ad /cmd | |
parent | fa36244fba3b49f825dc916b3c8c13c399d6d549 (diff) | |
parent | 61ec1576234bf6dbfad44b792823a80fd0267f4e (diff) |
Merge branch 'gcc-branch' into refs/top-bases/zfs-branch
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/zdb/zdb.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/zdb/zdb.c b/cmd/zdb/zdb.c index c09bf032f..f8651cf82 100644 --- a/cmd/zdb/zdb.c +++ b/cmd/zdb/zdb.c @@ -538,6 +538,7 @@ dump_dtl(vdev_t *vd, int indent) boolean_t required; char *name[DTL_TYPES] = { "missing", "partial", "scrub", "outage" }; char prefix[256]; + int c, t; spa_vdev_state_enter(spa); required = vdev_dtl_required(vd); @@ -551,7 +552,7 @@ dump_dtl(vdev_t *vd, int indent) vd->vdev_parent ? vd->vdev_ops->vdev_op_type : spa_name(spa), required ? "DTL-required" : "DTL-expendable"); - for (int t = 0; t < DTL_TYPES; t++) { + for (t = 0; t < DTL_TYPES; t++) { space_map_t *sm = &vd->vdev_dtl[t]; if (sm->sm_space == 0) continue; @@ -565,7 +566,7 @@ dump_dtl(vdev_t *vd, int indent) &vd->vdev_dtl_smo, sm); } - for (int c = 0; c < vd->vdev_children; c++) + for (c = 0; c < vd->vdev_children; c++) dump_dtl(vd->vdev_child[c], indent + 4); } |