g...@lexort.com (Greg Troxel) writes: >David Brownlee <a...@absd.org> writes: >> https://gnats.netbsd.org/57583
>Do you think this is just a bug that it fails to look at wd3e >etc. wrongly if there is /dev/zfs? The code scans all devices in the specified device directory, unless it's /dev/. Then it uses sysctl hw.disknames to enumerate disk devices, and it doesn't care about disklabel partitions. You can also cache devices, then the pool devices are just used as stored in the cache instead of scanning all disks for labels. But that doesn't work nicely with wedges or anything else with changing device units.