Project

General

Profile

Bug #5503 ยป zpool-list-expandsz.patch

Steven Hartland, 2015-01-01 02:41 PM

View differences:

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c (working copy)
2764 2764
	vs->vs_rsize = vdev_get_min_asize(vd);
2765 2765
	if (vd->vdev_ops->vdev_op_leaf)
2766 2766
		vs->vs_rsize += VDEV_LABEL_START_SIZE + VDEV_LABEL_END_SIZE;
2767
	vs->vs_esize = vd->vdev_max_asize - vd->vdev_asize;
2767
	if (vd->vdev_max_asize != 0)
2768
		vs->vs_esize = vd->vdev_max_asize - vd->vdev_asize;
2768 2769
	vs->vs_configured_ashift = vd->vdev_top != NULL
2769 2770
	    ? vd->vdev_top->vdev_ashift : vd->vdev_ashift;
2770 2771
	vs->vs_logical_ashift = vd->vdev_logical_ashift;
    (1-1/1)