configuration

package
v0.0.0-...-ea22f37 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 18 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LongAttributeCaching = AttributeCachingDuration{
	// contains filtered or unexported fields
}

LongAttributeCaching indicates that the NFS client may cache file attributes for a long amount of time.

This is a good policy for files or directories that are either fully immutable, or are only mutated through operations performed by the client through the mount point.

View Source
var NoAttributeCaching = AttributeCachingDuration{
	// contains filtered or unexported fields
}

NoAttributeCaching indicates that the NFS client should not cache any file attributes, such as size, modification time, permissions and symlink target.

This is a good policy for bb_virtual_tmp's symbolic link, whose target may not be cached.

View Source
var ShortAttributeCaching = AttributeCachingDuration{
	// contains filtered or unexported fields
}

ShortAttributeCaching indicates that the NFS client should only cache file attributes for a short amount of time.

This is a good policy for bb_worker's root directory. The contents of this directory change regularly, but there is a very low probability of immediate reuse of build action subdirectories having the same name. It is therefore desirable to have a limited amount of caching.

Functions

This section is empty.

Types

type AttributeCachingDuration

type AttributeCachingDuration struct {
	// contains filtered or unexported fields
}

AttributeCachingDuration specifies the amount of time attributes of files may be cached by an NFSv4 file system that accesses a virtual file system.

Unlike FUSE, NFSv4.0 provides no facilities for letting the server invalidate information on files cached by the client. To work around this, most NFS clients provide mount options such as 'acregmin', 'acregmax', 'acdirmin' and 'acdirmax' that permit specifying the amount of time attributes may be cached.

func (AttributeCachingDuration) Min

Min returns the lowest attribute cache duration. This can be used to combine multiple attribute caching durations into a single value, in case the NFS client makes no distinction between individual values.

type Mount

type Mount interface {
	Expose(terminationGroup program.Group, rootDirectory virtual.Directory) error
}

Mount of a virtual file system that has been created using NewMountFromConfiguration(), but that hasn't been exposed to the kernel or network yet. Before calling Expose(), the caller has the possibility to construct a root directory.

func NewMountFromConfiguration

func NewMountFromConfiguration(configuration *pb.MountConfiguration, fsName string, rootDirectoryAttributeCaching, childDirectoriesAttributeCaching, leavesAttributeCaching AttributeCachingDuration) (Mount, virtual.StatefulHandleAllocator, error)

NewMountFromConfiguration creates a new FUSE mount based on options specified in a configuration message and starts processing of incoming requests.

Jump to

Keyboard shortcuts

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