Documentation
¶
Index ¶
Constants ¶
View Source
const ( KEYWORD = "carina-" // DiskType is a disk type DiskType = "disk" // SSDType is an sdd type SSDType = "ssd" // PartType is a partition type PartType = "part" // CryptType is an encrypted type CryptType = "crypt" // LVMType is an LVM type LVMType = "lvm" RomType = "rom" Lvm2FsType = "LVM2_member" // MultiPath is for multipath devices MultiPath = "mpath" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BcacheDeviceInfo ¶
type BcacheDeviceInfo struct {
Magic string `json:"magic"`
FirstSector string `json:"first_sector"`
Csum string `json:"csum"`
Label string `json:"label"`
Uuid string `json:"uuid"`
SectorsPerBlock string `json:"sectors_per_block"`
SectorsPerBucket string `json:"sectors_per_bucket"`
DataFirstSector string `json:"data_first_sector"`
DataCacheMode string `json:"data_cache_mode"`
DataCacheState string `json:"data_cache_state"`
CsetUuid string `json:"cset_uuid"`
Version string `json:"version"`
Name string `json:"name"`
BcachePath string `json:"bcache_path"`
DevicePath string `json:"device_path"`
KernelMajor uint32 `json:"lvKernelMajor"`
KernelMinor uint32 `json:"lvKernelMinor"`
}
BcacheDeviceInfo bcache
type LocalDisk ¶
type LocalDisk struct {
// Name is the device name
Name string `json:"name"`
// mount point
MountPoint string `json:"mountPoint"`
// Size is the device capacity in byte
Size uint64 `json:"size"`
// status
State string `json:"state"`
// Type is disk type
Type string `json:"type"`
// 1 for hdd, 0 for ssd and nvme
Rotational string `json:"rotational"`
// ReadOnly is the boolean whether the device is readonly
Readonly bool `json:"readOnly"`
// Filesystem is the filesystem currently on the device
Filesystem string `json:"filesystem"`
// has used
Used uint64 `json:"used"`
// parent Name
ParentName string `json:"parentName"`
// Device number
DeviceNumber string `json:"deviceNumber"`
// Have partitions
HavePartitions bool `json:"havePartitions"`
}
type LvInfo ¶
type LvInfo struct {
LVName string `json:"lvName"`
VGName string `json:"vgName"`
LVPath string `json:"lvPath"`
LVSize uint64 `json:"lvSize"`
LVKernelMajor uint32 `json:"lvKernelMajor"`
LVKernelMinor uint32 `json:"lvKernelMinor"`
Origin string `json:"origin"`
OriginSize uint64 `json:"originSize"`
PoolLV string `json:"poolLv"`
ThinCount uint64 `json:"thinCount"`
LVTags string `json:"lvTags"`
DataPercent float64 `json:"dataPercent"`
LVAttr string `json:"lvAttr"`
LVActive string `json:"lvActive"`
}
LvInfo lv详细信息
Click to show internal directories.
Click to hide internal directories.