luser

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: 7 Imported by: 0

Documentation

Overview

Package luser uses lustre interfaces exported to usersapce directly, instead of using the liblustreapi.a library. Data structures created mirror those defined in lustre_user.

Index

Constants

View Source
const XattrNameLMA = "trusted.lma" // from lustre_idl.h

XattrNameLMA is the name of extended attribute for the striping data.

Variables

This section is empty.

Functions

func GetFid

func GetFid(path string) (*lustre.Fid, error)

GetFid retuns the lustre.Fid for the path name.

func GetFidFd

func GetFidFd(fd int) (*lustre.Fid, error)

GetFidFd retuns the lustre.Fid for the path name.

Types

type LinkEntry

type LinkEntry struct {
	Name   string
	Parent lustre.Fid
}

LinkEntry is an entry from the link extended attribute on a Lustre file. Each entry represents a name for hardlink and parent directory that conatains that name.

func GetLinkEA

func GetLinkEA(path string) ([]LinkEntry, error)

GetLinkEA returns the link extended attribute for a file or error if there is no link attribute. Pretty fragile since we're hardcoding all the struct sizes here.

type Version

type Version struct {
	Lustre string `yaml:"lustre"`
	Kernel string `yaml:"kernel"`
	Build  string `yaml:"build"`
}

Version represents the version of Lustre.

func GetVersion

func GetVersion() (*Version, error)

GetVersion returns current Lustre version.

Jump to

Keyboard shortcuts

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