blockdevice

package
v1.20.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlockDeviceSize added in v1.19.0

func GetBlockDeviceSize(path string) (int64, error)

GetBlockDeviceSize returns the size of the block device by path

func IsBlockDevice added in v1.19.0

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