]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r298786 (by asomers):
authormav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 28 Oct 2016 18:20:14 +0000 (18:20 +0000)
committermav <mav@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 28 Oct 2016 18:20:14 +0000 (18:20 +0000)
commit8b16449d42b4468495e54e2c7f789a9d5807197b
treefeb60bf371f4c2b7021b11d6a58bec3a46989c60
parent2a24b405efd584df241c13154413ac6e1c143e6f
MFC r298786 (by asomers):
Refactor vdev_geom_attach and friends to reduce code duplication

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c
        Move checks for provider's sectorsize and mediasize into a single
        location in vdev_geom_attach. Remove the zfs::vdev::taste class;
        it's ok to use the regular vdev class for tasting. Consolidate guid
        checks into a single location in vdev_attach_ok. Consolidate some
        error handling code from vdev_geom_attach into vdev_geom_detach,
        closing a resource leak of geom consumers in the process.

git-svn-id: svn://svn.freebsd.org/base/stable/10@308058 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c