This change looks to have been made due to Sun bug 6803822, but
it's not exactly clear to me why. Regardless I'm taking it.
This commit is contained in:
parent
6dc5bb52dd
commit
2cc278c96f
|
@ -531,8 +531,7 @@ vdev_disk_read_rootlabel(char *devpath, char *devid, nvlist_t **config)
|
||||||
/* read vdev label */
|
/* read vdev label */
|
||||||
offset = vdev_label_offset(size, i, 0);
|
offset = vdev_label_offset(size, i, 0);
|
||||||
if (vdev_disk_physio(vd_lh, (caddr_t)label,
|
if (vdev_disk_physio(vd_lh, (caddr_t)label,
|
||||||
VDEV_SKIP_SIZE + VDEV_BOOT_HEADER_SIZE +
|
VDEV_SKIP_SIZE + VDEV_PHYS_SIZE, offset, READ) != 0)
|
||||||
VDEV_PHYS_SIZE, offset, READ) != 0)
|
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (nvlist_unpack(label->vl_vdev_phys.vp_nvlist,
|
if (nvlist_unpack(label->vl_vdev_phys.vp_nvlist,
|
||||||
|
|
Loading…
Reference in New Issue