MCPcopy
hub / github.com/cubefs/cubefs / ParseError

Function ParseError

client/fs/const.go:69–78  ·  view source on GitHub ↗

ParseError returns the error type.

(err error)

Source from the content-addressed store, hash-verified

67
68// ParseError returns the error type.
69func ParseError(err error) fuse.Errno {
70 switch v := err.(type) {
71 case syscall.Errno:
72 return fuse.Errno(v)
73 case fuse.Errno:
74 return v
75 default:
76 return fuse.EIO
77 }
78}
79
80// ParseType returns the dentry type.
81func ParseType(t uint32) fuse.DirentType {

Callers 15

SubClientOpMethod · 0.85
InodeGetMethod · 0.85
AttrMethod · 0.85
ReleaseMethod · 0.85
ReadMethod · 0.85
WriteMethod · 0.85
FlushMethod · 0.85
FsyncMethod · 0.85
SetattrMethod · 0.85
ReadlinkMethod · 0.85
GetxattrMethod · 0.85
ListxattrMethod · 0.85

Calls 1

ErrnoTypeAlias · 0.92

Tested by

no test coverage detected