Documentation ¶
Overview ¶
aoe provides the implementation of an ATA over Ethernet server, backed by a Torus block volume.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device interface { io.Closer io.ReadWriteSeeker Sync() error aoe.Identifier }
type FileDevice ¶
func (*FileDevice) Identify ¶
func (fd *FileDevice) Identify() ([512]byte, error)
func (*FileDevice) Sectors ¶
func (fd *FileDevice) Sectors() (int64, error)
type Frame ¶
func (*Frame) UnmarshalBinary ¶
type FrameSender ¶
type FrameSender struct {
// contains filtered or unexported fields
}
type Interface ¶
type Interface struct { *net.Interface net.PacketConn }
implements net.PacketConn
func NewInterface ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(b *block.BlockVolume, options *ServerOptions) (*Server, error)
NewServer creates a new Server which utilizes the specified block volume. If options is nil, DefaultServerOptions will be used.
type ServerOptions ¶
type ServerOptions struct { // Major and Minor specify the major and minor address of an AoE server. // Typically, all AoE devices on a single server will share the same // major address, but have different minor addresses. // // It is important to note that all AoE servers on the same layer 2 // network must have different major and minor addresses. Major uint16 Minor uint8 }
ServerOptions specifies options for a Server.
Click to show internal directories.
Click to hide internal directories.