msfscas

package
v0.0.0-...-84da98f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2013 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

msfscas (in msfscas.go) implements msfs content-aware persistent storage

Index

Constants

View Source
const (
	AlignSize = 512
	BlockSize = 512
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CASC

type CASC struct {
	Cass   CASS
	Status string
	Mode   string
}

CASC implements the block store client

func (*CASC) Prepare

func (casc *CASC) Prepare(cass CASS) error

Prepare() initializes the Content Aware Storage Client

type CASS

type CASS struct {
	Requests    chan *CasReq
	Answers     chan *CasAns
	BlockDevice string
	BlockHost   string
	BlockPort   string
	BlockFormat string
	BlockSize   int64
	BlockMagic  string
	BlockStat   syscall.Stat_t
	Status      string
}

CASS implements the block store server

func (*CASS) Prepare

func (cass *CASS) Prepare(bd, bh, bp string, casreq chan *CasReq, casans chan *CasAns) error

Prepare must be called before using a Content Aware Storage Server

func (*CASS) Serve

func (cass *CASS) Serve()

type CasAns

type CasAns struct {
	Answer string
}

type CasReq

type CasReq struct {
	Request string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL