Skip to content

Commit

Permalink
5049 panic when removing log device
Browse files Browse the repository at this point in the history
Reviewed by: George Wilson <[email protected]>
Reviewed by: Mattew Ahrens <[email protected]>
Reviewed by: Paul Dagnelie <[email protected]>
Reviewed by: Dan Kimmel <[email protected]>
Reviewed by: Saso Kiselkov <[email protected]>
Approved by: Rich Lowe <[email protected]>
  • Loading branch information
Alex Reece authored and Christopher Siden committed Aug 4, 2014
1 parent 5886b38 commit 2986efa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion usr/src/uts/common/fs/zfs/vdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -2613,8 +2613,9 @@ vdev_get_stats(vdev_t *vd, vdev_stat_t *vs)
if (vd->vdev_ops->vdev_op_leaf)
vs->vs_rsize += VDEV_LABEL_START_SIZE + VDEV_LABEL_END_SIZE;
vs->vs_esize = vd->vdev_max_asize - vd->vdev_asize;
if (vd->vdev_aux == NULL && vd == vd->vdev_top)
if (vd->vdev_aux == NULL && vd == vd->vdev_top && !vd->vdev_ishole) {
vs->vs_fragmentation = vd->vdev_mg->mg_fragmentation;
}

/*
* If we're getting stats on the root vdev, aggregate the I/O counts
Expand Down

0 comments on commit 2986efa

Please sign in to comment.