]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow to boot from a pool within which replacing is in progress.
authorpjd <pjd@FreeBSD.org>
Thu, 9 Sep 2010 21:18:00 +0000 (21:18 +0000)
committerpjd <pjd@FreeBSD.org>
Thu, 9 Sep 2010 21:18:00 +0000 (21:18 +0000)
commit4cc2af01fbe4696ac7048b8d72a45f132175291a
treea77e0e8973876dfee3ea59d87c4a6fa6fe8a24e3
parent87570d6f03a8ba3c5e9538377d23a4aaae3439a0
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.

MFC after: 2 weeks
sys/boot/zfs/zfsimpl.c