Changeset View
Changeset View
Standalone View
Standalone View
stand/userboot/userboot/main.c
| Show First 20 Lines • Show All 279 Lines • ▼ Show 20 Lines | if (userboot_disk_maxunit > 0) { | ||||
| } | } | ||||
| dd = &dev.dd; | dd = &dev.dd; | ||||
| } else { | } else { | ||||
| dev.dd.d_dev = &host_dev; | dev.dd.d_dev = &host_dev; | ||||
| dev.dd.d_unit = 0; | dev.dd.d_unit = 0; | ||||
| dd = &dev.dd; | dd = &dev.dd; | ||||
| } | } | ||||
| set_currdev(userboot_fmtdev(dd)); | set_currdev(devformat(dd)); | ||||
| #if defined(USERBOOT_ZFS_SUPPORT) | #if defined(USERBOOT_ZFS_SUPPORT) | ||||
| if (userboot_zfs_found) { | if (userboot_zfs_found) { | ||||
| buf = malloc(VDEV_PAD_SIZE); | buf = malloc(VDEV_PAD_SIZE); | ||||
| if (buf != NULL) { | if (buf != NULL) { | ||||
| if (zfs_get_bootonce(&zdev, OS_BOOTONCE, buf, | if (zfs_get_bootonce(&zdev, OS_BOOTONCE, buf, | ||||
| VDEV_PAD_SIZE) == 0) { | VDEV_PAD_SIZE) == 0) { | ||||
| printf("zfs bootonce: %s\n", buf); | printf("zfs bootonce: %s\n", buf); | ||||
| ▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines | |||||