Documentation ¶
Overview ¶
Package dentry holds dentry related files
Package dentry holds dentry related files
Index ¶
- Variables
- func IsFakeInode(inode uint64) bool
- type ErrDentryPathKeyNotFound
- type ErrERPCRequestNotProcessed
- type ErrERPCResolution
- type ErrKernelMapResolution
- type ErrTruncatedParents
- type ErrTruncatedParentsERPC
- type PathEntry
- type Resolver
- func (dr *Resolver) Close() error
- func (dr *Resolver) DelCacheEntries(mountID uint32)
- func (dr *Resolver) GetParent(pathKey model.PathKey) (model.PathKey, error)
- func (dr *Resolver) Resolve(pathKey model.PathKey, cache bool) (string, error)
- func (dr *Resolver) ResolveFromCache(pathKey model.PathKey) (string, error)
- func (dr *Resolver) ResolveFromERPC(pathKey model.PathKey, cache bool) (string, error)
- func (dr *Resolver) ResolveFromMap(pathKey model.PathKey, cache bool) (string, error)
- func (dr *Resolver) ResolveName(pathKey model.PathKey) string
- func (dr *Resolver) ResolveNameFromCache(pathKey model.PathKey) (string, error)
- func (dr *Resolver) ResolveNameFromMap(pathKey model.PathKey) (string, error)
- func (dr *Resolver) ResolveParentFromCache(pathKey model.PathKey) (model.PathKey, error)
- func (dr *Resolver) ResolveParentFromMap(pathKey model.PathKey) (model.PathKey, error)
- func (dr *Resolver) SendStats() error
- func (dr *Resolver) Start(manager *manager.Manager) error
- func (dr *Resolver) ToJSON() ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
var ErrEntryNotFound = errors.New("entry not found")
ErrEntryNotFound is thrown when a path key was not found in the cache
Functions ¶
func IsFakeInode ¶
IsFakeInode returns whether the given inode is a fake inode
Types ¶
type ErrDentryPathKeyNotFound ¶
ErrDentryPathKeyNotFound is used to notify that the request key is missing from the kernel maps
func (ErrDentryPathKeyNotFound) Error ¶
func (err ErrDentryPathKeyNotFound) Error() string
type ErrERPCRequestNotProcessed ¶
type ErrERPCRequestNotProcessed struct{}
ErrERPCRequestNotProcessed is used to notify that the eRPC request was not processed
func (ErrERPCRequestNotProcessed) Error ¶
func (err ErrERPCRequestNotProcessed) Error() string
type ErrERPCResolution ¶
type ErrERPCResolution struct{}
ErrERPCResolution is used to notify that the eRPC resolution failed
func (ErrERPCResolution) Error ¶
func (err ErrERPCResolution) Error() string
type ErrKernelMapResolution ¶
type ErrKernelMapResolution struct{}
ErrKernelMapResolution is used to notify that the Kernel maps resolution failed
func (ErrKernelMapResolution) Error ¶
func (err ErrKernelMapResolution) Error() string
type ErrTruncatedParents ¶
type ErrTruncatedParents struct{}
ErrTruncatedParents is used to notify that some parents of the path are missing
func (ErrTruncatedParents) Error ¶
func (err ErrTruncatedParents) Error() string
type ErrTruncatedParentsERPC ¶
type ErrTruncatedParentsERPC struct{}
ErrTruncatedParentsERPC is used to notify that some parents of the path are missing
func (ErrTruncatedParentsERPC) Error ¶
func (err ErrTruncatedParentsERPC) Error() string
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver resolves inode/mountID to full paths
func NewResolver ¶
func NewResolver(config *config.Config, statsdClient statsd.ClientInterface, e *erpc.ERPC) (*Resolver, error)
NewResolver returns a new dentry resolver
func (*Resolver) DelCacheEntries ¶
DelCacheEntries removes all the entries belonging to a mountID
func (*Resolver) Resolve ¶
Resolve the pathname of a dentry, starting at the pathnameKey in the pathnames table
func (*Resolver) ResolveFromCache ¶
ResolveFromCache resolves path from the cache
func (*Resolver) ResolveFromERPC ¶
ResolveFromERPC resolves the path of the provided inode / mount id / path id
func (*Resolver) ResolveFromMap ¶
ResolveFromMap resolves the path of the provided inode / mount id / path id
func (*Resolver) ResolveName ¶
ResolveName resolves an inode/mount ID pair to a file basename
func (*Resolver) ResolveNameFromCache ¶
ResolveNameFromCache returns the name
func (*Resolver) ResolveNameFromMap ¶
ResolveNameFromMap resolves the name of the provided inode
func (*Resolver) ResolveParentFromCache ¶
ResolveParentFromCache resolves the parent
func (*Resolver) ResolveParentFromMap ¶
ResolveParentFromMap resolves the parent