Top 4.8% dependent repos on proxy.golang.org
Top 7.3% forks on proxy.golang.org
proxy.golang.org : github.com/Merovius/nbd
Package nbd implements the NBD network protocol. You can find a full description of the protocol at https://sourceforge.net/p/nbd/code/ci/master/tree/doc/proto.md This package implements both the client and the server side of the protocol, as well as (on Linux) utilities to hook up the kernel NBD client to use a server as a block device. The protocol is split into two phases: The handshake phase, which allows the client and server to negotiate their respective capabilities and what export to use. And the transmission phase, for actually reading/writing to the block device. The client side of the handshake is done with the Client type. Its methods can be used to list the exports a server provides and their respective capabilities. Its Go method enters transmission phase. The returned Export can then be passed to Configure (linux only) to hook it up to an NBD device (/dev/nbdX). The server side combines both handshake and transmission phase into the Serve or ListenAndServe functions. The user is expected to implement the Device interface to serve actual reads/writes. Under linux, the Loopback function serves as a convenient way to use a given Device as a block device.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/%21merovius/nbd
License: Apache-2.0
Latest release: over 1 year ago
First release: about 6 years ago
Namespace: github.com/Merovius
Dependent repositories: 1
Stars: 127 on GitHub
Forks: 7 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: about 1 month ago