K 10 svn:author V 7 git2svn K 8 svn:date V 27 2021-10-17T18:47:16.620037Z K 7 svn:log V 746 loader: zfs_probe_dev should pick first matching zfs pool During devswitch probe, we pick boot pool based on boot disk, if the boot disk happens to have multiple pools in freebsd-zfs partitions, the current code does pick last pool from boot disk as boot pool. While there is no way at that stage to test, the more logical approach would be to pick first matching pool. This patch is assuming we do pass pool guid pointer with guid value 0, this will help us to determine, if the guid value is already set or not. The general suggestion would be not to share disk between different pools. (cherry picked from commit 867ae3c38d1aa97300bd35f457037b3f1a0a103f) Git Hash: 97318fde948f1e543e7df2c1034b84cd96dafcf1 Git Author: tsoome@FreeBSD.org END