-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netlink refactoring and various fixes (#2112)
* nbd netlink refactoring (#1963) - fix context leak when nl_socket_modify_cb fails - use clojure instead of a static method + custom context as a socket callback - move TNetlinkDevice methods outside of the class definition to reduce nesting - use nl_send_auto + nl_wait_for_ack instead of nl_send_sync to differentiate between send and recv errors - remove "Device" suffixes from TNetlinkDevice methods * nbd netlink refactoring part 2 (#1971) - rename Timeout -> RequestTimeout - rename DeadConnectionTimeout -> ConnectionTimeout - move Send method from TNetlinkMessage to TNetlinkSocket - clarify comments regarding ioctl device timeout - get rid of ShouldStop atomic - close client socket regardless of deleteDevice flag - replace hard-coded 1 day ioctl device timeout with connection timeout which serves the same purpose - make Start idempotent * replace ExtactValue with GetValue (#1984) * do not call Start on already started nbd endpoint (#1985)
- Loading branch information
Showing
8 changed files
with
247 additions
and
213 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
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.