fs

package
v0.0.0-...-4c73ccb Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 13 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAvailableSize

func GetAvailableSize(dir string) (availableSize int64, err error)

GetAvailableSize returns the amount of memory used by the partition.

func GetDirSize

func GetDirSize(path string) (size int64, err error)

GetDirSize returns the size of directory.

func GetMountPoint

func GetMountPoint(dir string) (mountPoint string, err error)

GetMountPoint returns mount point for directory.

func GetTotalSize

func GetTotalSize(dir string) (totalSize int64, err error)

GetTotalSize returns total partition size.

func GetUserFSQuotaUsage

func GetUserFSQuotaUsage(path string, uid, gid uint32) (byteUsed uint64, err error)

GetUserFSQuotaUsage gets file system user usage.

func Mount

func Mount(source string, mountPoint string, fsType string, flags uintptr, opts string) error

Mount creates mount point and mount source to it.

func OverlayMount

func OverlayMount(mountPoint string, lowerDirs []string, workDir, upperDir string) error

OverlayMount creates mount point and mount overlay FS to it.

func SetUserFSQuota

func SetUserFSQuota(path string, limit uint64, uid, gid uint32) (err error)

SetUserFSQuota sets file system quota for user.

func Umount

func Umount(mountPoint string) (err error)

Umount umount mount point and remove it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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