Documentation ¶
Index ¶
Constants ¶
View Source
const ( DeviceTypeBlock = "block" DeviceTypeNFS = "nfs" DeviceTypeCPFS = "cpfs-nfs" DeviceTypePCI = "pci" DeviceTypeDFBusPort = "dfbus" RunD2MountInfoFileName = "vol_data.json" RunD3MountInfoFileName = "vol_attr.json" // BlockFileModeReadWrite decimal value of 660 (-rw-rw---) BlockFileModeReadWrite = "432" // BlockFileModeReadOnly decimal value of 440 (-r--r----) BlockFileModeReadOnly = "288" )
Variables ¶
This section is empty.
Functions ¶
func Add ¶
Add writes the mount info of a direct volume into a filesystem path known to Kata Container.
func AddMountInfo ¶
func IsRunD2VolumePath ¶
func IsRunDVolumeAlreadyMount ¶
IsRunDVolumeAlreadyMount checks if a RunDVolume is already mounted
Types ¶
type MountInfo ¶
type MountInfo struct { Source string `json:"Source"` // 设备标识 DeviceType string `json:"DeviceType"` // 设备类型 MountOpts []string `json:"MountOpts"` // 挂载方式及属性 Extra map[string]string `json:"Extra"` // 扩展字段 FSType string `json:"FSType"` // 文件系统类型 }
MountInfo contains the information needed by Rund to consume a host block device and mount it as a filesystem inside the guest VM.
func IsRunD3VolumePath ¶
func VolumeMountInfo ¶
VolumeMountInfo retrieves the mount info of a direct volume.
Click to show internal directories.
Click to hide internal directories.