Documentation
¶
Overview ¶
Package blkinfo implements methods for block device information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BlkInfo ¶
type BlkInfo struct { Path string `json:"path" ` ResolvedPath string `json:"resolved_path" ` ParentPath string `json:"parent_path" ` ChildPaths []string `json:"child_paths" ` SysPath string `json:"sys_path" ` ResolevedSysPath string `json:"resolved_sys_path"` Sys *Sys `json:"sys" ` MajorMinor string `json:"major_minor" ` UdevDataPath string `json:"udev_data_path" ` UdevData []string `json:"udev_data" ` MountInfoPath string `json:"mount_info_path" ` MountInfo *MountInfo `json:"mount_info" ` OSReleasePath string `json:"os_release_path" ` OSRelease map[string]string `json:"os_release" ` }
BlkInfo shows block device information.
type MountInfo ¶
type MountInfo struct { // See https://github.com/torvalds/linux/blob/d8372ba8ce288acdfce67cb873b2a741785c2e88/Documentation/filesystems/proc.txt#L1711 MountID string `json:"mount_id" ` ParentID string `json:"parent_id" ` MajorMinor string `json:"major_minor" ` Root string `json:"root" ` MountPoint string `json:"mount_point" ` MountOptions []string `json:"mount_options" ` OptionalFields []string `json:"optional_fields"` FilesystemType string `json:"filesystem_type"` MountSource string `json:"mount_source" ` SuperOptions []string `json:"super_options" ` }
MountInfo shows mount information.
type Sys ¶
type Sys struct { // See https://github.com/torvalds/linux/blob/d13937116f1e82bf508a6325111b322c30c85eb9/fs/block_dev.c#L1229-L1242 // /sys/block/dm-0/slaves/sda --> /sys/block/sda // /sys/block/sda/holders/dm-0 --> /sys/block/dm-0 Uevent []string `json:"uevent" ` Slaves []string `json:"slaves" ` Holders []string `json:"holders"` }
Sys shows sys information.
Click to show internal directories.
Click to hide internal directories.