blockdevice

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlockDeviceSize

func GetBlockDeviceSize(path string) (int64, error)

GetBlockDeviceSize returns the size of the block device by path

func IsBlockDevice

func IsBlockDevice(path string) (bool, error)

IsBlockDevice checks whether device on the path is a block device

func RescanBlockDeviceGeometry

func RescanBlockDeviceGeometry(devicePath string, deviceMountPath string, newSize int64) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL