Documentation
¶
Overview ¶
Package fs is the runtime attach interface for vhost-user-fs devices (typically virtiofsd). Attach is runtime-only — devices don't persist past VM stop; re-attach after restart.
Index ¶
Constants ¶
View Source
const ( DefaultNumQueues = 1 DefaultQueueSize = 1024 )
Variables ¶
View Source
var ( // ErrUnsupportedBackend signals the resolved hypervisor backend cannot // hot-plug vhost-user-fs (e.g. Firecracker). ErrUnsupportedBackend = errors.New("backend does not support fs attach") )
Functions ¶
Types ¶
type Attached ¶
type Attached struct {
ID string `json:"id"`
Tag string `json:"tag"`
Socket string `json:"socket"`
}
Attached is the inspect-time view of one fs device read from the running VM's CH config.
type Attacher ¶
type Attacher interface {
FsAttach(ctx context.Context, vmRef string, spec Spec) (deviceID string, err error)
FsDetach(ctx context.Context, vmRef, tag string) error
}
Attacher hot-plugs and removes vhost-user-fs devices.
Click to show internal directories.
Click to hide internal directories.