Documentation ¶
Index ¶
- func FidPath(mnt RootDir, f *lustre.Fid) string
- func FidRelativePath(f *lustre.Fid) string
- func LookupFid(path string) (*lustre.Fid, error)
- func LstatFid(mnt RootDir, f *lustre.Fid) (os.FileInfo, error)
- func OpenByFid(mnt RootDir, f *lustre.Fid) (*os.File, error)
- func OpenFileByFid(mnt RootDir, f *lustre.Fid, flags int, perm os.FileMode) (*os.File, error)
- func StatFid(mnt RootDir, f *lustre.Fid) (os.FileInfo, error)
- func Version() (string, error)
- type ID
- type RootDir
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FidRelativePath ¶
func FidRelativePath(f *lustre.Fid) string
FidRelativePath returns the relattive open-by-fid path for a fid.
func OpenFileByFid ¶
OpenFileByFid returns an open file handle given a mountpoint and fid
Types ¶
type ID ¶
type ID RootDir
ID should be a unique identifier for a filesystem. For now just use RootDir
func GetID ¶
GetID returns the filesystem's ID. For the moment, this is the root path, but in the future it could be something more globally unique (uuid?).
type RootDir ¶
type RootDir struct {
// contains filtered or unexported fields
}
RootDir represent a the mount point of a Lustre filesystem.
func MountRelPath ¶
MountRelPath returns the lustre mountpoint, and remaing path for the given pathname. The remaining path is relative to the mount point. Returns an error if pathname is not valid or does not refer to a Lustre fs.
func MountRoot ¶
MountRoot returns the Lustre filesystem mountpoint for path or returns an error if the path is not on a Lustre filesystem.
func (RootDir) IsValid ¶
IsValid indicates whether or not the RootDir is actually the root of a Lustre filesystem.
func (RootDir) Join ¶
Join args with root dir to create an absolute path. FIXME: replace this with OpenAt and friends