fsextender

package module
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 9, 2020 License: MIT Imports: 19 Imported by: 0

README

Build Status Coverage Status

Extend filesystem to max size with underliing layers. It can extend: ext3, ext4, xfs, LVM Logical volume, LVM Physical volume, LVM Volume Group (with new or free pv) , partitions in MSDOS and GPT partition tables. It can create new partitions and LVM Physical volumes on disk with MSDOS and GPT partition tables.

Расширяет файловую систему до максимального размера, вместе с нижележащими слоями. Может расширять: ext3, ext4, xfs, логические и физические тома LVM, LVM Volume Group (за счет создания новых физических томов и использования уже созданных, но свободных), разделы на дисках с таблицами разделов MSDOS и GPT. Может создавать: новые разделы и физические тома LVM на дисках с таблицами разделов MSDOS и GPT.

Usage example: Пример использования: fsextender [--filter=LVM_ALREADY_PLACED] /home [--do]

Instruction see in usage.txt Инструкцию смотрите в usage.txt

external dependencies: Внешние зависимости:

/proc/mounts - detect mount points /sys/

blkid - detect file system type stat - detect major,minor number of device blockdev - get sector size of disk - need for manipulate with partition tables. partprobe - reread partition table after changes. TODO: replace with blockdev --rereadadpt

Documentation

Index

Constants

View Source
const DEBUG = false
View Source
const FILTER_LVM_ALREADY_PLACED = "LVM_ALREADY_PLACED"
View Source
const MAX_UINT32 = 4294967295
View Source
const REGEXP_CHARS = "^*+?[]"
View Source
const TRY_COUNT = 5 // Retry operations if it can and first is fail. For example - fast change LVM not always succesfully

Variables

This section is empty.

Functions

func Asset added in v0.1.1

func Asset(name string) ([]byte, error)

Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetDir added in v0.1.1

func AssetDir(name string) ([]string, error)

AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:

data/
  foo.txt
  img/
    a.png
    b.png

then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.

func AssetInfo added in v0.1.1

func AssetInfo(name string) (os.FileInfo, error)

AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetNames added in v0.1.1

func AssetNames() []string

AssetNames returns the names of the assets.

func Main

func Main() int

func MustAsset added in v0.1.1

func MustAsset(name string) []byte

MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.

func RestoreAsset added in v0.1.1

func RestoreAsset(dir, name string) error

RestoreAsset restores an asset under the given directory

func RestoreAssets added in v0.1.1

func RestoreAssets(dir, name string) error

RestoreAssets restores an asset under the given directory recursively

Types

This section is empty.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/kr/text
Package text provides rudimentary functions for manipulating text in paragraphs.
Package text provides rudimentary functions for manipulating text in paragraphs.
_workspace/src/github.com/kr/text/colwriter
Package colwriter provides a write filter that formats input lines in multiple columns.
Package colwriter provides a write filter that formats input lines in multiple columns.
_workspace/src/github.com/kr/text/mc
Command mc prints in multiple columns.
Command mc prints in multiple columns.
_workspace/src/github.com/ogier/pflag
pflag is a drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.
pflag is a drop-in replacement for Go's flag package, implementing POSIX/GNU-style --flags.
_workspace/src/github.com/rekby/pretty
Package pretty provides pretty-printing for Go values.
Package pretty provides pretty-printing for Go values.

Jump to

Keyboard shortcuts

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