status

package
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: 14 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FidPathname

func FidPathname(mnt fs.RootDir, f *lustre.Fid, linkno int) (string, error)

FidPathname returns a path for a FID.

Paths are relative from the fs.RootDir of the filesystem. If the fid is referred to by more than one file (i.e. hard links), the the LINKNO specifies a specific link to return. This does not update linkno on return. Use Paths to retrieve all hard link names.

func FidPathnames

func FidPathnames(mnt fs.RootDir, f *lustre.Fid) ([]string, error)

FidPathnames returns all paths for a fid.

This returns a slice containing all names that reference the fid.

func GetMdt

func GetMdt(root fs.RootDir, f *lustre.Fid) (int, error)

GetMdt returns the MDT index for a given Fid

func LmvName

func LmvName(p string) (string, error)

LmvName returns the uniqe name for the LMV device for the client associated with the path.

func LovName

func LovName(p string) (string, error)

LovName returns the uniqe name for the LOV devcie for the client associated with the path.

Types

type ConnectionStatus

type ConnectionStatus struct {
	FailoverNids            []string `yaml:"failover_nids"`
	CurrentConnection       string   `yaml:"current_connection"`
	ConnectionAttempts      int      `yaml:"connection_attempts"`
	Generation              int      `yaml:"generation"`
	InProgressInvalidations int      `yaml:"in-progress_invalidations"`
}

ConnectionStatus is current status of the import's connection to the target.

type Import

type Import struct {
	Name         string
	State        string
	Target       string
	ConnectFlags []string `yaml:"connect_flags"`
	ImportFlags  []string `yaml:"import_flags"`
	Connection   ConnectionStatus
	// OSC only
	Averages WriteDataAverages `yaml:"write_data_averages"`
}

Import is the state of a client import

func ReadImport

func ReadImport(path string) (*Import, error)

ReadImport returns Import from the given client dir.

type LustreClient

type LustreClient struct {
	FsName   string
	ClientID string
}

LustreClient is a local client

func Client

func Client(mountPath string) (*LustreClient, error)

Client returns the local Lustre client identifier for that mountpoint. This can be used to determine which entries in /proc/fs/lustre as associated with that client.

func (*LustreClient) ClientPath

func (c *LustreClient) ClientPath(module string, cli string) string

ClientPath returns path to base proc file for a client module

func (*LustreClient) LMVTargets

func (c *LustreClient) LMVTargets() []string

LMVTargets retuns list of MDC devices in the LMV

func (*LustreClient) LOVTargets

func (c *LustreClient) LOVTargets() []string

LOVTargets retuns list of OSC devices in the LOV

func (*LustreClient) String

func (c *LustreClient) String() string

type TargetIndex

type TargetIndex struct {
	Index int
	Name  string
}

TargetIndex is the name of a target and its index.

func LmvTargets

func LmvTargets(p string) (result []TargetIndex, err error)

LmvTargets returns uuids and indices of the targts in an LmV. Path refers to a file or directory in a Lustre filesystem.

func LovTargets

func LovTargets(p string) (result []TargetIndex, err error)

LovTargets returns uuids and indices of the targts in an LOV. Path refers to a file or directory in a Lustre filesystem.

type Wrapper

type Wrapper struct {
	Import Import
}

Wrapper unnamed outer layer in import file

type WriteDataAverages

type WriteDataAverages struct {
	BytesPerRPC     int     `yaml:"bytes_per_rpc"`
	MicrosendPerRPC int     `yaml:"usec_per_rpc"`
	MegabytesPerSec float64 `yaml:"MB_per_sec"`
}

WriteDataAverages is available on OSC imports

Jump to

Keyboard shortcuts

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