fs

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ext4

type Ext4 struct{}

Ext4 satisfies the Filesystem interface

func NewExt4

func NewExt4() *Ext4

func (*Ext4) Mkfs

func (e *Ext4) Mkfs(op trace.Operation, devPath, label string) error

Mkfs creates an ext4 fs on the given device and applices the given label

func (*Ext4) Mount

func (e *Ext4) Mount(op trace.Operation, devPath, targetPath string, options []string) error

Mount mounts an ext4 formatted device at the given path. From the Docker mount pkg, args must in the form arg=val.

func (*Ext4) SetLabel

func (e *Ext4) SetLabel(op trace.Operation, devPath, labelName string) error

SetLabel sets the label of an ext4 formated device

func (*Ext4) Unmount

func (e *Ext4) Unmount(op trace.Operation, path string) error

Unmount unmounts the disk. path can be a device path or a mount point

type XFS

type XFS struct{}

XFS satisfies the Filesystem interface

func NewXFS

func NewXFS() *XFS

Create an XFS filesystem manager

func (*XFS) Mkfs

func (e *XFS) Mkfs(op trace.Operation, devPath, label string) error

Mkfs creates an xfs fs on the given device and applices the given label

func (*XFS) Mount

func (e *XFS) Mount(op trace.Operation, devPath, targetPath string, options []string) error

Mount mounts an xfs formatted device at the given path. From the Docker mount pkg, args must in the form arg=val.

func (*XFS) SetLabel

func (e *XFS) SetLabel(op trace.Operation, devPath, labelName string) error

SetLabel sets the label of an xfs formated device

func (*XFS) Unmount

func (e *XFS) Unmount(op trace.Operation, path string) error

Unmount unmounts the disk. path can be a device path or a mount point

Jump to

Keyboard shortcuts

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