lustre

package module
v0.0.0-...-7bde1eb Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2016 License: MIT Imports: 2 Imported by: 0

README

Lustre Utils API for Go

This package is a Go interface for liblustreapi. Instead of a 1:1 representaiton of liblustre, it attempts to present a more Go-friendly interface. It is still a work in progress, and interfaces could still change.

Documentation

Overview

Package lustre documentatation...

Index

Constants

View Source
const (
	// AcceptorPort is the port used for LNet traffic over TCP
	AcceptorPort = 988

	// MaxExtentLength is a value sent by the coordinator to
	// signify that an action should apply from the offset to
	// EOF. In liblustreapi, this is represented by
	// math.MaxUint64.
	MaxExtentLength int64 = -1
)

Variables

View Source
var ErrUnimplemented = errors.New("not implemented")

ErrUnimplemented is returned when a function is not available on the current platform.

Functions

This section is empty.

Types

type Fid

type Fid struct {
	Seq uint64
	Oid uint32
	Ver uint32
}

Fid is a pure Go representation of a Lustre file identifier. It is intended to be the only representation of a Lustre Fid outside of llapi.

func ParseFid

func ParseFid(fidstr string) (*Fid, error)

ParseFid converts a fid in string format to a Fid

func (*Fid) IsDotLustre

func (f *Fid) IsDotLustre() bool

IsDotLustre is true if Fid is special .lustre entry.

func (*Fid) IsZero

func (f *Fid) IsZero() bool

IsZero is true if Fid is 0.

func (*Fid) MarshalJSON

func (f *Fid) MarshalJSON() ([]byte, error)

MarshalJSON converts a Fid to a string for JSON.

func (*Fid) String

func (f *Fid) String() string

func (*Fid) UnmarshalJSON

func (f *Fid) UnmarshalJSON(b []byte) (err error)

UnmarshalJSON converts fid string to Fid.

Directories

Path Synopsis
cli
clsim
This utility doesn't really "do" anything...
This utility doesn't really "do" anything...
fid2path
fid2path displays the paths for one or more fids.
fid2path displays the paths for one or more fids.
lu_chglog
View changelogs
View changelogs
lu_status
lu_status displays current state of a Lustre client
lu_status displays current state of a Lustre client
path2fid
path2fid displays the fids for provided files
path2fid displays the fids for provided files
fs
Package llapi provides access to many of the functions avialable in liblustreapi.
Package llapi provides access to many of the functions avialable in liblustreapi.
Package luser uses lustre interfaces exported to usersapce directly, instead of using the liblustreapi.a library.
Package luser uses lustre interfaces exported to usersapce directly, instead of using the liblustreapi.a library.
pkg

Jump to

Keyboard shortcuts

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