Hyper.SuidHelper.Blockdev (Hyper v0.1.0)

Copy Markdown View Source

Block-device queries, via the setuid helper's blockdev tool.

Summary

Functions

Size of the block device at path, in 512-byte sectors.

Types

err()

@type err() :: Hyper.SuidHelper.err()

Functions

device_sectors(path)

@spec device_sectors(Path.t()) :: {:ok, pos_integer()} | {:error, err()}

Size of the block device at path, in 512-byte sectors.