filesystems

package
v0.7.0-rc2 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ext234Resize

type Ext234Resize struct {
}

Ext234Resize implements the FilesystemResizer interface for the ext4/3/2fs.

func (*Ext234Resize) CanResizeFilesystem

func (c *Ext234Resize) CanResizeFilesystem(fstype string) bool

CanResizeFilesystem checks whether Ext234Resize can resize this filesystem.

func (*Ext234Resize) ResizeFilesystem

func (c *Ext234Resize) ResizeFilesystem(deviceName string, commandExecutor func(cmd string) (out string, err error)) error

ResizeFilesystem calls resize2fs to resize the filesystem if necessary.

type FilesystemResizer

type FilesystemResizer interface {
	CanResizeFilesystem(fstype string) bool
	ResizeFilesystem(deviceName string, commandExecutor func(string) (out string, err error)) error
}

FilesystemResizer has methods to work with resizing of a filesystem

Jump to

Keyboard shortcuts

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