MFC r212382,r212383,r212384,r212387:
r212382:
Remove duplicated code.
r212383:
Allow to boot from a pool within which replacing is in progress.
Before the change it wasn't possible and the following error was printed:
ZFS: can only boot from disk, mirror or raidz vdevs
Now if the original vdev (the one we are replacing) is still present we will
read from it, but if it is not present we won't read from the new vdev, as it
might not have enough valid data yet.
r212384:
Ignore log vdevs.
r212387:
Remove empty lines committed by accident.
git-svn-id: svn://svn.freebsd.org/base/stable/8@214014
ccf9f872-aa2e-dd11-9fc8-
001c23d0bc1f