Page MenuHomeFreeBSD

stand/zfs: Refactor zfs_get_bootenv
ClosedPublic

Authored by imp on Apr 4 2023, 6:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mar 12 2024, 9:31 PM
Unknown Object (File)
Feb 19 2024, 11:18 PM
Unknown Object (File)
Dec 20 2023, 5:49 AM
Unknown Object (File)
Dec 13 2023, 3:04 AM
Unknown Object (File)
Aug 15 2023, 2:49 AM
Unknown Object (File)
Jun 25 2023, 5:04 AM
Unknown Object (File)
Jun 24 2023, 7:19 AM
Unknown Object (File)
Jun 24 2023, 6:46 AM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 50754
Build 47645: arc lint + arc unit

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.