cmd

package
v2.3.0-rc.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InodeCheckOpt int = 1 << iota
	DentryCheckOpt
)

Variables

View Source
var (
	MasterAddr string
	VolName    string
	InodesFile string
	DensFile   string
	MetaPort   string
)

Functions

func Check

func Check(chkopt int) (err error)

func Clean

func Clean(opt string) error

func NewRootCmd

func NewRootCmd() *cobra.Command

Types

type Dentry

type Dentry struct {
	ParentId uint64
	Name     string
	Inode    uint64
	Type     uint32

	Valid bool
}

func (*Dentry) String

func (d *Dentry) String() string

type Inode

type Inode struct {
	Inode      uint64
	Type       uint32
	Size       uint64
	CreateTime int64
	AccessTime int64
	ModifyTime int64
	NLink      uint32

	Dens  []*Dentry
	Valid bool
}

func (*Inode) String

func (i *Inode) String() string

Jump to

Keyboard shortcuts

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