]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
If setting a state to anything but open state, close access to vdev.
authorpjd <pjd@FreeBSD.org>
Mon, 5 Nov 2007 21:30:48 +0000 (21:30 +0000)
committerpjd <pjd@FreeBSD.org>
Mon, 5 Nov 2007 21:30:48 +0000 (21:30 +0000)
commit20124c11ebcd28e28131341032787040777bc67d
tree4a4754aeb070f65222eabbb0d12e4a9438801a0b
parent22aca79e7beacb3d3456fdc1c02ebf96afbdb1ed
If setting a state to anything but open state, close access to vdev.
This fixes replacing drive in place, eg. zpool replace tank da1 da1.
Before it complained that device is already open.

MFC after: 1 week
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c
sys/contrib/opensolaris/uts/common/fs/zfs/vdev.c