filesystems

package
v3.0.0-beta13 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CanFSCK

func CanFSCK(fs any) error

func DevicesFSCK

func DevicesFSCK(ctx context.Context, fs any, dl subDeviceLister) error

func DevicesFormated

func DevicesFormated(ctx context.Context, fs any, dl subDeviceLister) (bool, error)

func HasFSCK

func HasFSCK(fs any) bool

func IsCapable

func IsCapable(ctx context.Context, t string) bool

func Types

func Types() []string

Types

type CanFSCKer

type CanFSCKer interface {
	CanFSCK() error
}

type Ext2

type Ext2 struct{ T }

func NewExt2

func NewExt2() *Ext2

func (Ext2) CanFSCK

func (t Ext2) CanFSCK() error

func (Ext2) FSCK

func (t Ext2) FSCK(ctx context.Context, s string) error

func (Ext2) IsFormated

func (t Ext2) IsFormated(ctx context.Context, s string) (bool, error)

func (Ext2) MKFS

func (t Ext2) MKFS(ctx context.Context, s string, args []string) error

type Ext3

type Ext3 struct{ T }

func NewExt3

func NewExt3() *Ext3

func (Ext3) CanFSCK

func (t Ext3) CanFSCK() error

func (Ext3) FSCK

func (t Ext3) FSCK(ctx context.Context, s string) error

func (Ext3) IsFormated

func (t Ext3) IsFormated(ctx context.Context, s string) (bool, error)

func (Ext3) MKFS

func (t Ext3) MKFS(ctx context.Context, s string, args []string) error

type Ext4

type Ext4 struct{ T }

func NewExt4

func NewExt4() *Ext4

func (Ext4) CanFSCK

func (t Ext4) CanFSCK() error

func (Ext4) FSCK

func (t Ext4) FSCK(ctx context.Context, s string) error

func (Ext4) IsFormated

func (t Ext4) IsFormated(ctx context.Context, s string) (bool, error)

func (Ext4) MKFS

func (t Ext4) MKFS(ctx context.Context, s string, args []string) error

type FSCKer

type FSCKer interface {
	FSCK(context.Context, string) error
}

type I

type I interface {
	String() string
	Type() string
	IsZero() bool
	IsNetworked() bool
	IsVirtual() bool
	IsFileBacked() bool
	IsMultiDevice() bool
	Mount(context.Context, string, string, string) error
	Umount(context.Context, string) error
	KillUsers(context.Context, string) error
	Log() *plog.Logger
	SetLog(*plog.Logger)
}

func FromType

func FromType(s string) I

type IsCapabler

type IsCapabler interface {
	IsCapable() bool
}

type IsFormateder

type IsFormateder interface {
	IsFormated(context.Context, string) (bool, error)
}

type MKFSer

type MKFSer interface {
	MKFS(context.Context, string, []string) error
}

type T

type T struct {
	// contains filtered or unexported fields
}

func (T) IsFileBacked

func (t T) IsFileBacked() bool

func (T) IsMultiDevice

func (t T) IsMultiDevice() bool

func (T) IsNetworked

func (t T) IsNetworked() bool

func (T) IsVirtual

func (t T) IsVirtual() bool

func (T) IsZero

func (t T) IsZero() bool

func (T) KillUsers

func (t T) KillUsers(ctx context.Context, mnt string) error

func (T) Log

func (t T) Log() *plog.Logger

func (T) Mount

func (t T) Mount(ctx context.Context, dev string, mnt string, options string) error

func (*T) SetLog

func (t *T) SetLog(log *plog.Logger)

func (T) String

func (t T) String() string

func (T) Type

func (t T) Type() string

func (T) Umount

func (t T) Umount(ctx context.Context, mnt string) error

type XFS

type XFS struct{ T }

func NewXFS

func NewXFS() *XFS

func (XFS) IsCapable

func (t XFS) IsCapable() bool

func (XFS) IsFormated

func (t XFS) IsFormated(ctx context.Context, s string) (bool, error)

func (XFS) MKFS

func (t XFS) MKFS(ctx context.Context, devpath string, args []string) error

Jump to

Keyboard shortcuts

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