diff options
Diffstat (limited to 'sys/boot/zfs/zfs.c')
-rw-r--r-- | sys/boot/zfs/zfs.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/boot/zfs/zfs.c b/sys/boot/zfs/zfs.c index cf0bb9c..e5cfad6 100644 --- a/sys/boot/zfs/zfs.c +++ b/sys/boot/zfs/zfs.c @@ -414,10 +414,14 @@ zfs_dev_init(void) close(fd); for (slice = 1; slice <= 4; slice++) { - sprintf(devname, "disk%ds%d:", unit, slice); + sprintf(devname, "disk%dp%d:", unit, slice); fd = open(devname, O_RDONLY); - if (fd == -1) - continue; + if (fd == -1) { + sprintf(devname, "disk%ds%d:", unit, slice); + fd = open(devname, O_RDONLY); + if (fd == -1) + continue; + } if (vdev_probe(vdev_read, (void*) (uintptr_t) fd, 0)) close(fd); } |