fstabutils

package
v0.3.10-0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var VDISK_PREFIX = "/dev/vd"

Functions

This section is empty.

Types

type FsTab

type FsTab []*SFSRecord

func FSTabFile

func FSTabFile(content string) *FsTab

func (*FsTab) AddFsrec

func (ft *FsTab) AddFsrec(line string)

func (*FsTab) IsExists

func (ft *FsTab) IsExists(dev string) bool

func (*FsTab) RemoveDevices

func (ft *FsTab) RemoveDevices(devCnt int) *FsTab

func (*FsTab) ToConf

func (ft *FsTab) ToConf() string

type SFSRecord

type SFSRecord struct {
	Dev   string
	Mount string
	Fs    string
	Opt   string
	Dump  string
	Pas   string
}

func FSRecord

func FSRecord(line string) *SFSRecord

func (*SFSRecord) String

func (fsr *SFSRecord) String() string

Jump to

Keyboard shortcuts

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