MCPcopy Create free account

hub / github.com/Merovius/nbd / functions

Functions140 in github.com/Merovius/nbd

↓ 17 callersMethodwriteUint32
(v uint32)
handshake.go:417
↓ 15 callersMethoduint32
()
handshake.go:399
↓ 13 callersMethodClose
Close implements io.Closer. It cleans up the resources associated with the ctxRW, but not the wrapped net.Conn. The wrapped net.Conn must be closed by
transmission.go:213
↓ 13 callersMethodread
(b []byte)
handshake.go:374
↓ 13 callersMethodwriteUint16
(v uint16)
handshake.go:411
↓ 11 callersFunctionencodeReply
(e *encoder, option uint32, reply optionReply)
types.go:206
↓ 10 callersMethoduint64
()
handshake.go:405
↓ 10 callersMethodwriteUint64
(v uint64)
handshake.go:423
↓ 9 callersMethoduint16
()
handshake.go:393
↓ 8 callersFunctionrespondErr
respondErr writes an error respons to e, based on handle an err.
transmission.go:153
↓ 8 callersMethodwrite
(b []byte)
handshake.go:351
↓ 6 callersFunctiondo
do wraps rw for easy en-/decoding of binary data. It creates an *encoder and calls f with that. The process uses panic/recover for error handling, so
handshake.go:323
↓ 5 callersMethodExecute
(ctx context.Context, fs *flag.FlagSet, _ ...interface{})
cmd/nbd/lo.go:64
↓ 5 callersMethodencode
(*encoder)
types.go:202
↓ 5 callersMethodwriteString
(s string)
handshake.go:360
↓ 4 callersMethoddecode
(*encoder, uint32)
types.go:203
↓ 4 callersFunctiondial
dial initalizes conn, if needed.
nbdnl/nbd.go:85
↓ 3 callersFunctionListenAndServe
ListenAndServe starts listening on the given network/address and serves the given exports, the first of which will serve as the default. It starts a n
transmission.go:50
↓ 3 callersMethoddiscard
(n uint32)
handshake.go:382
↓ 3 callersMethodrecv
recv receives an option reply from the server.
handshake.go:178
↓ 3 callersMethodsend
send sends an option request to the server.
handshake.go:165
↓ 2 callersFunctionConfigure
Configure passes the given set of sockets to the kernel to provide them as an NBD device. socks must be connected to the same server (which must suppo
netlink.go:38
↓ 2 callersFunctionDisconnect
Disconnect instructs the kernel to disconnect the given device.
nbdnl/nbd.go:274
↓ 2 callersMethodError
()
transmission.go:30
↓ 2 callersMethodGo
Go terminates the handshake phase of the NBD protocol, opening the export identified by exportName. If exportName is the empty string, the default exp
handshake.go:291
↓ 2 callersMethodWrite
Write implements io.Writer. It returns context.Cause(ctx) if the write was aborted due to context cancellation.
transmission.go:201
↓ 2 callersMethodcheckClosed
(e *encoder)
handshake.go:158
↓ 2 callersMethodclose
close marks the Client closed, preventing it from further use, and cleans up the connection wrapper. It does not close the wrapped connection.
handshake.go:299
↓ 2 callersMethodcode
()
types.go:201
↓ 2 callersFunctionencodeSockList
(l []uint32)
nbdnl/nbd.go:298
↓ 2 callersFunctionfindExport
findExport searches the list of exports for one with the given name. If name is empty, it returns the first export. findExport performs a linear searc
handshake.go:308
↓ 2 callersMethodinfo
into sends an NBD_OPT_INFO (if done == false) or NBD_OPT_GO (if done == true) request and returns the export data returned by the server.
handshake.go:247
↓ 2 callersFunctionserve
serve serves nbd requests for a connection in transmission mode using p. It returns after ctx is cancelled or an error occurs.
transmission.go:98
↓ 2 callersFunctionstatus
(idx uint32)
nbdnl/nbd.go:340
↓ 2 callersFunctionwrapConn
wrapConn wraps a connection in a ctxRW.
transmission.go:177
↓ 1 callersFunctionClientHandshake
ClientHandshake starts the client-side of the NBD handshake over c.
handshake.go:140
↓ 1 callersFunctionConnect
Connect instructs the kernel to connect the given set of sockets to the given NBD device number. socks must be NBD connections in transmission mode. c
nbdnl/nbd.go:171
↓ 1 callersMethodErrno
()
transmission.go:31
↓ 1 callersFunctionErrorf
Errorf returns an error implementing Error, returning code from Errno.
types.go:465
↓ 1 callersFunctionLoopback
Loopback serves d on a private socket, passing the other end to the kernel to connect to an NBD device. It returns the device-number that the kernel c
netlink.go:54
↓ 1 callersFunctionServe
Serve serves the given exports on c. The first export is used as a default. Serve returns after ctx is cancelled or an error occurs.
transmission.go:88
↓ 1 callersFunctionStatusAll
StatusAll lists all NBD devices and their corresponding status.
nbdnl/nbd.go:332
↓ 1 callersMethodString
()
types.go:175
↓ 1 callersMethodSync
Sync should block until all previous writes where written to persistent storage and return any errors that occured.
transmission.go:42
↓ 1 callersMethodUsage
()
cmd/nbd/connect.go:51
↓ 1 callersMethodUsage
()
cmd/nbd/lo.go:47
↓ 1 callersMethodUsage
()
cmd/nbd/serve.go:47
↓ 1 callersFunctionWithBlockSize
WithBlockSize sets the block size used by the client to n.
nbdnl/nbd.go:114
↓ 1 callersMethodWriteAt
(p []byte, offset int64)
cmd/nbd/lo.go:122
↓ 1 callersFunctionblockSize
(fi os.FileInfo)
cmd/nbd/stat_unix.go:26
↓ 1 callersMethoddecode
(e *encoder)
types.go:511
↓ 1 callersFunctiondecodeDeviceList
(b []byte)
nbdnl/nbd.go:395
↓ 1 callersFunctiondecodeDeviceListItem
(b []byte)
nbdnl/nbd.go:417
↓ 1 callersFunctiondecodeInfo
(e *encoder, l uint32)
types.go:270
↓ 1 callersFunctiondecodeOption
(e *encoder)
types.go:42
↓ 1 callersMethodencode
(e *encoder)
types.go:544
↓ 1 callersFunctionserverHandshake
(rw io.ReadWriter, exp []Export)
handshake.go:51
↓ 1 callersMethodtoggleCrash
()
cmd/nbd/lo.go:114
MethodAbort
Abort aborts the handshake. c should not be used after Abort returns.
handshake.go:212
MethodErrno
Errno returns e.
types.go:451
MethodErrno
()
types.go:460
MethodError
()
types.go:396
MethodError
()
types.go:443
MethodExecute
(ctx context.Context, fs *flag.FlagSet, _ ...interface{})
cmd/nbd/disc.go:57
MethodExecute
(ctx context.Context, fs *flag.FlagSet, _ ...interface{})
cmd/nbd/connect.go:64
MethodExecute
(ctx context.Context, fs *flag.FlagSet, _ ...interface{})
cmd/nbd/serve.go:59
MethodExecute
(ctx context.Context, fs *flag.FlagSet, _ ...interface{})
cmd/nbd/list.go:57
MethodInfo
Info requests information about the export identified by exportName. If exportName is the empty string, the default export will be queried.
handshake.go:284
MethodList
List returns the names of exports the server is providing.
handshake.go:226
MethodName
()
cmd/nbd/disc.go:36
MethodName
()
cmd/nbd/connect.go:43
MethodName
()
cmd/nbd/lo.go:39
MethodName
()
cmd/nbd/serve.go:39
MethodName
()
cmd/nbd/list.go:39
MethodRead
Read implements io.Reader. It returns context.Cause(ctx) if the read was aborted due to context cancellation.
transmission.go:191
FunctionReconfigure
Reconfigure reconfigures the given device. The arguments are equivalent to Configure, except that IndexAny is invalid for Reconfigure and WithBlockSiz
nbdnl/nbd.go:235
MethodSet
(s string)
cmd/nbd/nbd.go:56
MethodSetFlags
(fs *flag.FlagSet)
cmd/nbd/disc.go:52
MethodSetFlags
(fs *flag.FlagSet)
cmd/nbd/connect.go:58
MethodSetFlags
(fs *flag.FlagSet)
cmd/nbd/lo.go:62
MethodSetFlags
(fs *flag.FlagSet)
cmd/nbd/serve.go:54
MethodSetFlags
(fs *flag.FlagSet)
cmd/nbd/list.go:54
FunctionStatus
Status returns the status of the given NBD device.
nbdnl/nbd.go:317
MethodString
()
cmd/nbd/nbd.go:46
MethodSynopsis
()
cmd/nbd/disc.go:40
MethodSynopsis
()
cmd/nbd/connect.go:47
MethodSynopsis
()
cmd/nbd/lo.go:43
MethodSynopsis
()
cmd/nbd/serve.go:43
MethodSynopsis
()
cmd/nbd/list.go:43
FunctionTestListenAndServeContextCancel
(t *testing.T)
transmission_test.go:10
FunctionTestListenAndServeContextNoCancel
(t *testing.T)
transmission_test.go:42
MethodUsage
()
cmd/nbd/disc.go:44
MethodUsage
()
cmd/nbd/list.go:47
FunctionWithDeadconnTimeout
WithDeadconnTimeout sets the timeout after which the client considers a server unreachable to d.
nbdnl/nbd.go:129
FunctionWithTimeout
WithTimeout sets the read-timeout for the NBD client to d.
nbdnl/nbd.go:121
FunctionblockSize
(fi os.FileInfo)
cmd/nbd/stat_other.go:25
Methodcode
()
types.go:39
Methodcode
()
types.go:96
Methodcode
()
types.go:109
Methodcode
()
types.go:126
next →1–100 of 140, ranked by callers