Page MenuHomeFreeBSD

stand/zfs: Refactor zfs_get_bootenv
ClosedPublic

Authored by imp on Apr 4 2023, 6:12 PM.
Tags
None
Referenced Files
F149895584: D39409.id119840.diff
Fri, Mar 27, 11:16 PM
Unknown Object (File)
Mon, Mar 23, 1:24 PM
Unknown Object (File)
Feb 21 2026, 3:39 AM
Unknown Object (File)
Feb 20 2026, 9:23 AM
Unknown Object (File)
Feb 15 2026, 10:28 AM
Unknown Object (File)
Feb 8 2026, 4:23 AM
Unknown Object (File)
Feb 7 2026, 11:25 PM
Unknown Object (File)
Jan 31 2026, 1:03 PM
Subscribers

Details

Summary

Create a new interface to zfs_get_bootenv called zfs_get_bootenv_spa
which takes a spa instead of a void * (effectively a devdesc *). Use
that in zfs_get_bootenv.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kevans added inline comments.
stand/libsa/zfs/zfs.c
803

Noting that this changes the return value for a non-ZFS vdev from NOTSUP to ENXIO... I think that's an improvement, though.

This revision is now accepted and ready to land.Apr 12 2023, 5:06 AM
This revision was automatically updated to reflect the committed changes.