mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-22 02:37:15 +00:00
loader: return errors from writing ZFS labels
vdev_write_bootenv_impl can only return success. Instead, return the last error. This will make any write errors more visible. The old code masked kboot's inability to write bootenv. Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D44018
This commit is contained in:
parent
b3e76e3d9e
commit
e54bb0ad80
|
@ -1688,7 +1688,7 @@ vdev_write_bootenv_impl(vdev_t *vdev, vdev_boot_envblock_t *be)
|
||||||
if (kid->v_state != VDEV_STATE_HEALTHY)
|
if (kid->v_state != VDEV_STATE_HEALTHY)
|
||||||
continue;
|
continue;
|
||||||
rc = vdev_write_bootenv_impl(kid, be);
|
rc = vdev_write_bootenv_impl(kid, be);
|
||||||
if (rv == 0)
|
if (rv != 0)
|
||||||
rv = rc;
|
rv = rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue