Documentation ¶
Overview ¶
Package dev provides a filesystem implementation for /dev.
Index ¶
Constants ¶
View Source
const Name = "dev"
Name is the dev filesystem name.
Variables ¶
This section is empty.
Functions ¶
func CreateDeviceFile ¶
func CreateDeviceFile(ctx context.Context, vfsObj *vfs.VirtualFilesystem, creds *auth.Credentials, root vfs.VirtualDentry, pathname string, major, minor uint32, mode linux.FileMode, uid, gid *uint32) error
CreateDeviceFile creates a device special file at the given pathname from root.
Types ¶
type FilesystemType ¶
type FilesystemType struct{}
FilesystemType implements vfs.FilesystemType.
+stateify savable
func (FilesystemType) GetFilesystem ¶
func (fst FilesystemType) GetFilesystem(ctx context.Context, vfsObj *vfs.VirtualFilesystem, creds *auth.Credentials, source string, opts vfs.GetFilesystemOptions) (*vfs.Filesystem, *vfs.Dentry, error)
GetFilesystem implements vfs.FilesystemType.GetFilesystem.
func (FilesystemType) Name ¶
func (FilesystemType) Name() string
Name implements vfs.FilesystemType.Name.
func (*FilesystemType) Release ¶
func (fst *FilesystemType) Release(ctx context.Context)
Release implements vfs.FilesystemType.Release.
type InternalData ¶
type InternalData struct { // ShmMode indicates the mode to create the /dev/shm dir with. ShmMode *uint16 }
InternalData contains internal data passed in via vfs.GetFilesystemOptions.
Click to show internal directories.
Click to hide internal directories.