mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 03:09:34 +03:00
Illumos 5049 - panic when removing log device
Reviewed by: George Wilson <george.wilson@delphix.com> Reviewed by: Mattew Ahrens <mahrens@delphix.com> Reviewed by: Paul Dagnelie <paul.dagnelie@delphix.com> Reviewed by: Dan Kimmel <dan.kimmel@delphix.com> Reviewed by: Saso Kiselkov <skiselkov@gmail.com> Approved by: Rich Lowe <richlowe@richlowe.net> References: https://www.illumos.org/issues/5049 https://github.com/illumos/illumos-gate/commit/2986efa Ported-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #2636
This commit is contained in:
parent
2078f21015
commit
f38dfec3fd
@ -2655,8 +2655,9 @@ vdev_get_stats(vdev_t *vd, vdev_stat_t *vs)
|
|||||||
if (vd->vdev_ops->vdev_op_leaf)
|
if (vd->vdev_ops->vdev_op_leaf)
|
||||||
vs->vs_rsize += VDEV_LABEL_START_SIZE + VDEV_LABEL_END_SIZE;
|
vs->vs_rsize += VDEV_LABEL_START_SIZE + VDEV_LABEL_END_SIZE;
|
||||||
vs->vs_esize = vd->vdev_max_asize - vd->vdev_asize;
|
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;
|
vs->vs_fragmentation = vd->vdev_mg->mg_fragmentation;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If we're getting stats on the root vdev, aggregate the I/O counts
|
* If we're getting stats on the root vdev, aggregate the I/O counts
|
||||||
|
Loading…
Reference in New Issue
Block a user