Page MenuHomeFreeBSD

stand: Change zfs_parsedev() API
ClosedPublic

Authored by imp on Nov 10 2022, 5:04 PM.
Tags
None
Referenced Files
F82029359: D37336.id112853.diff
Wed, Apr 24, 6:23 PM
F82029357: D37336.id.diff
Wed, Apr 24, 6:23 PM
F82029320: D37336.id113702.diff
Wed, Apr 24, 6:23 PM
Unknown Object (File)
Wed, Apr 24, 4:19 PM
Unknown Object (File)
Sun, Apr 21, 11:14 PM
Unknown Object (File)
Feb 22 2024, 1:27 AM
Unknown Object (File)
Feb 19 2024, 4:17 AM
Unknown Object (File)
Feb 19 2024, 4:17 AM

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