dir

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DIRENTSZ uint64 = 128
View Source
const MAXNAMELEN = DIRENTSZ - 16 // uint64 for inum + uint64 for len(name)

Variables

This section is empty.

Functions

func AddName

func AddName(dip *inode.Inode, op *fstxn.FsTxn, inum common.Inum, name nfstypes.Filename3) bool

func AddNameDir

func AddNameDir(dip *inode.Inode, op *fstxn.FsTxn, inum common.Inum,
	name nfstypes.Filename3, lastoff uint64) (uint64, bool)

func Apply

func Apply(dip *inode.Inode, op *fstxn.FsTxn, start uint64,
	dircount uint64, maxcount uint64,
	f func(*inode.Inode, string, common.Inum, uint64)) bool

XXX inode locking order violated

func ApplyEnts

func ApplyEnts(dip *inode.Inode, op *fstxn.FsTxn, start uint64, count uint64,
	f func(string, common.Inum, uint64)) bool

func IllegalName

func IllegalName(name nfstypes.Filename3) bool

func InitDir

func InitDir(dip *inode.Inode, op *fstxn.FsTxn, parent common.Inum) bool

func IsDirEmpty

func IsDirEmpty(dip *inode.Inode, op *fstxn.FsTxn) bool

func LookupName

func LookupName(dip *inode.Inode, op *fstxn.FsTxn, name nfstypes.Filename3) (common.Inum, uint64)

func MkRootDir

func MkRootDir(dip *inode.Inode, op *fstxn.FsTxn) bool

func RemName

func RemName(dip *inode.Inode, op *fstxn.FsTxn, name nfstypes.Filename3) bool

func RemNameDir

func RemNameDir(dip *inode.Inode, op *fstxn.FsTxn, name nfstypes.Filename3) (uint64, bool)

func ScanName

func ScanName(dip *inode.Inode, op *fstxn.FsTxn, name nfstypes.Filename3) (common.Inum, uint64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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