Page MenuHomeFreeBSD

stand: Change zfs_parsedev() API
ClosedPublic

Authored by imp on Nov 10 2022, 5:04 PM.
Tags
None
Referenced Files
F147819902: D37336.diff
Fri, Mar 13, 10:06 PM
Unknown Object (File)
Feb 8 2026, 1:12 PM
Unknown Object (File)
Feb 7 2026, 8:29 PM
Unknown Object (File)
Jan 30 2026, 10:43 PM
Unknown Object (File)
Jan 20 2026, 12:15 PM
Unknown Object (File)
Jan 5 2026, 12:33 PM
Unknown Object (File)
Dec 28 2025, 1:25 PM
Unknown Object (File)
Dec 28 2025, 1:20 PM

Details

Summary

Change the first argument to zfs_parsedev() to be a pointer to a struct
devdesc *. This now gets filled in with a malloc'd structure that's
returned to the caller that the caller is repsonsible for freeing. Most
places in the tree passed in a malloc'd pointer anyway, and this moves
knowledge of zfs_devdesc more firmly into the zfs.c code.

Sponsored by: Netflix

Diff Detail

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