package blkdiscard

import "github.com/containerd/containerd/snapshots/devmapper/blkdiscard"

Index

Functions

func BlkDiscard

func BlkDiscard(devicePath string) (string, error)

BlkDiscard discards all blocks of a device. devicePath is expected to be a fully qualified path. BlkDiscard expects the caller to verify that the device is not in use.

func Version

func Version() (string, error)

Version returns the output of "blkdiscard --version"

Source Files

blkdiscard.go

Version
v1.6.7
Published
Aug 4, 2022
Platform
linux/amd64
Imports
1 packages
Last checked
58 seconds ago

Tools for package owners.