{"id":16828049,"url":"https://github.com/joshtriplett/nbd-netlink","last_synced_at":"2025-07-13T19:41:56.938Z","repository":{"id":57643683,"uuid":"286639299","full_name":"joshtriplett/nbd-netlink","owner":"joshtriplett","description":"Rust crate to set up an NBD device for a specified socket and parameters, using the Linux netlink interface","archived":false,"fork":false,"pushed_at":"2022-07-03T04:05:08.000Z","size":9,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-25T01:51:10.479Z","etag":null,"topics":["nbd","netlink","network-block-device","rust","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joshtriplett.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-11T03:45:56.000Z","updated_at":"2023-06-15T21:26:14.000Z","dependencies_parsed_at":"2022-08-27T22:53:56.554Z","dependency_job_id":null,"html_url":"https://github.com/joshtriplett/nbd-netlink","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshtriplett%2Fnbd-netlink","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshtriplett%2Fnbd-netlink/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshtriplett%2Fnbd-netlink/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joshtriplett%2Fnbd-netlink/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joshtriplett","download_url":"https://codeload.github.com/joshtriplett/nbd-netlink/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247856541,"owners_count":21007620,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nbd","netlink","network-block-device","rust","rust-lang"],"created_at":"2024-10-13T11:24:22.671Z","updated_at":"2025-04-11T03:51:01.513Z","avatar_url":"https://github.com/joshtriplett.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"`nbd-netlink` supports setting up an NBD device for a specified socket and\nparameters, using the Linux kernel's netlink interface to NBD. Unlike the\n`ioctl`-based interface, the netlink interface can hand off a socket to the\nkernel without leaving a thread or process running.\n\n# Example\n\n```rust\nuse std::net::{Ipv4Addr, TcpStream};\nuse nbd_netlink::{NBD, NBDConnect};\nlet nbd_socket = TcpStream::connect((Ipv4Addr::LOCALHOST, 10809))?;\nnbd_socket.set_nodelay(true);\nlet mut nbd = NBD::new()?;\nlet index = NBDConnect::new()\n    .size_bytes(1048576)\n    .read_only(true)\n    .connect(\u0026mut nbd, \u0026[nbd_socket])?;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshtriplett%2Fnbd-netlink","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoshtriplett%2Fnbd-netlink","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoshtriplett%2Fnbd-netlink/lists"}