cmd

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 31 Imported by: 1

Documentation

Index

Constants

View Source
const (
	InodeCheckOpt int = 1 << iota
	DentryCheckOpt
)
View Source
const (
	MaxBloomFilterSize uint64 = 50 * 1024 * 1024 * 1024
	// MaxBloomFilterSize uint64 = 50 * 1024 * 1024
	MpDir      string = "mp"
	DpDir      string = "dp"
	BadDir     string = "bad"
	BackSuffix string = ".succ"
)
View Source
const (
	BuffersTotalLimit = 1024 * 1024 // 1M
)
View Source
const (
	MaxFollowPathTaskNum = 120
)

Variables

View Source
var (
	MasterAddr string
	VolName    string
	InodesFile string
	DensFile   string
	MetaPort   string
	InodeID    uint64
	DataPort   string
	CleanS     bool
	CleanFlag  string
)

Functions

func Check

func Check(chkopt int) (err error)

func Clean

func Clean(opt string) error

func InitLocalDir

func InitLocalDir(dir string, volname string, partitionId string, dirType string) (tinyFilePath string, normalFilePath string, err error)

func NewRootCmd

func NewRootCmd() *cobra.Command

Types

type BadNornalExtent

type BadNornalExtent struct {
	ExtentId string
	Size     uint32
}

type Dentry

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

	Valid bool
}

func (*Dentry) String

func (d *Dentry) String() string

type ExtentForGc

type ExtentForGc struct {
	Id     string // dpId + '_' + extentId
	Offset uint64
	Size   uint32
}

type Inode

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

	Dens  []*Dentry
	Valid bool
	Files uint64
	Dirs  uint64
	Bytes uint64
	Path  string
}

func (*Inode) String

func (i *Inode) String() string

type Summary

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

type VerifyInfo

type VerifyInfo struct {
	ClusterName string
	VolName     string
}

Jump to

Keyboard shortcuts

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