Documentation ¶
Index ¶
- Constants
- func AddName(dip *inode.Inode, op *fstxn.FsTxn, inum common.Inum, name nfstypes.Filename3) bool
- func AddNameDir(dip *inode.Inode, op *fstxn.FsTxn, inum common.Inum, name nfstypes.Filename3, ...) (uint64, bool)
- func Apply(dip *inode.Inode, op *fstxn.FsTxn, start uint64, dircount uint64, ...) bool
- func ApplyEnts(dip *inode.Inode, op *fstxn.FsTxn, start uint64, count uint64, ...) bool
- func IllegalName(name nfstypes.Filename3) bool
- func InitDir(dip *inode.Inode, op *fstxn.FsTxn, parent common.Inum) bool
- func IsDirEmpty(dip *inode.Inode, op *fstxn.FsTxn) bool
- func LookupName(dip *inode.Inode, op *fstxn.FsTxn, name nfstypes.Filename3) (common.Inum, uint64)
- func MkRootDir(dip *inode.Inode, op *fstxn.FsTxn) bool
- func RemName(dip *inode.Inode, op *fstxn.FsTxn, name nfstypes.Filename3) bool
- func RemNameDir(dip *inode.Inode, op *fstxn.FsTxn, name nfstypes.Filename3) (uint64, bool)
- func ScanName(dip *inode.Inode, op *fstxn.FsTxn, name nfstypes.Filename3) (common.Inum, uint64)
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 AddNameDir ¶
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 IllegalName ¶
func LookupName ¶
func RemNameDir ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.