Page MenuHomeFreeBSD

stand: Change zfs_parsedev() API
ClosedPublic

Authored by imp on Nov 10 2022, 5:04 PM.
Tags
None
Referenced Files
F163583529: D37336.id112853.diff
Fri, Jul 24, 5:23 PM
F163575546: D37336.id113702.diff
Fri, Jul 24, 3:47 PM
F163501374: D37336.id.diff
Thu, Jul 23, 9:00 PM
Unknown Object (File)
Wed, Jul 22, 7:28 PM
Unknown Object (File)
Tue, Jul 21, 8:39 PM
Unknown Object (File)
Tue, Jul 21, 12:52 PM
Unknown Object (File)
Mon, Jul 20, 4:40 AM
Unknown Object (File)
Sun, Jul 12, 9:38 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