Documentation ¶
Index ¶
- func FidPathname(mnt fs.RootDir, f *lustre.Fid, linkno int) (string, error)
- func FidPathnames(mnt fs.RootDir, f *lustre.Fid) ([]string, error)
- func GetMdt(root fs.RootDir, f *lustre.Fid) (int, error)
- func LmvName(p string) (string, error)
- func LovName(p string) (string, error)
- type ConnectionStatus
- type Import
- type LustreClient
- type TargetIndex
- type Wrapper
- type WriteDataAverages
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FidPathname ¶
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 ¶
FidPathnames returns all paths for a fid.
This returns a slice containing all names that reference the fid.
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 ¶
ReadImport returns Import from the given client dir.
type LustreClient ¶
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 ¶
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 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