Skip to content

Commit

Permalink
nbd netlink refactoring (#1963)
Browse files Browse the repository at this point in the history
nbd netlink refactoring

- 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
  • Loading branch information
tpashkin authored Sep 6, 2024
1 parent 8437732 commit 4e22466
Showing 1 changed file with 172 additions and 149 deletions.
Loading

0 comments on commit 4e22466

Please sign in to comment.