volumesetup

package
v0.0.0-...-6489ed8 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

README

Implements the functionality to provision block devices.

Documentation

Index

Constants

View Source
const (
	PartitionLabelSize          int = 1
	PartitionLabelInitialOffset int = 1
)

Variables

This section is empty.

Functions

func InitializeBlockDevice

func InitializeBlockDevice(blockDevice string, inputQuery volumequery.VolumeQuery, hostname string, machineId string) error

Initialize a block device as a docker-simple-disk device based on a volume query. This function will forcibly overwrite any partition table already present.

func WriteAndSyncExistingFile

func WriteAndSyncExistingFile(filename string, data []byte, perm os.FileMode) error

WriteAndSyncExistingFile writes a file and calls sync, ensuring data is written to the device if it exits successfully.

Types

This section is empty.

Jump to

Keyboard shortcuts

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