ParseError returns the error type.
(err error)
| 67 | |
| 68 | // ParseError returns the error type. |
| 69 | func 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. |
| 81 | func ParseType(t uint32) fuse.DirentType { |
no test coverage detected