fsutils

package
v0.3.11-8 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: Apache-2.0 Imports: 17 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployGuestfs

func DeployGuestfs(d deploy_iface.IDeployer, req *apis.DeployParams) (res *apis.DeployGuestFsResponse, err error)

func DetectIsUEFISupport

func DetectIsUEFISupport(rootfs fsdriver.IRootFsDriver, partitions []fsdriver.IDiskPartition) bool

func FormatFs

func FormatPartition

func FormatPartition(path, fs, uuid string) error

func FsckExtFs

func FsckExtFs(fpath string) bool

func FsckXfsFs

func FsckXfsFs(fpath string) bool

https://bugs.launchpad.net/ubuntu/+source/xfsprogs/+bug/1718244 use xfs_repair -n instead

func GetDevSector512Count

func GetDevSector512Count(dev string) int

func IsPartedFsString

func IsPartedFsString(fsstr string) bool

func IsSupportResizeFs

func IsSupportResizeFs(fs string) bool

func Mkpartition

func Mkpartition(imagePath, fsFormat string) error

func MountRootfs

func MountRootfs(readonly bool, partitions []fsdriver.IDiskPartition) (fsdriver.IRootFsDriver, error)

func ParseDiskPartition

func ParseDiskPartition(dev string, lines []string) ([][]string, string)

func ProbeImageInfo

func ProbeImageInfo(d deploy_iface.IDeployer) (*apis.ImageInfo, error)

func ResizeDiskFs

func ResizeDiskFs(diskPath string, sizeMb int) error

func ResizeFs

func ResizeFs(d deploy_iface.IDeployer) (*apis.Empty, error)

func ResizePartitionFs

func ResizePartitionFs(fpath, fs string, raiseError bool) (error, bool)

func SetExt4UsageTypeThresholds

func SetExt4UsageTypeThresholds(largefile, hugefile int64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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