forked from openzfs/zfs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
zoa: determine response type automatically (openzfs#446)
Since the `response_type` is the same as the `request_type`, the server infrastructure can fill it in automatically, so each request handler doesn't need to match it up manually. The "get pools" response contained the pools directly in the nvlist, and asserted that there are no other nvpairs. There was no `response_type` in this response message. This commit changes it so that "get pools" includes a `response_type`, and the pools are under a different `pools` nvpair. Additionally, the code in `PublicConnectionState::get_pools()` is reorganized to be more clear. Additionally, the code in `PublicConnectionState::get_destroying_pools()` is simplified, using the server helper method to convert to an nvlist.
- Loading branch information
Showing
5 changed files
with
135 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.