aboutsummaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-01-04 23:21:27 +0100
committerJakob Unterwurzacher2019-01-04 23:21:27 +0100
commit8074f12bebbaafd2c498183a914f021d32d34578 (patch)
tree340e34a4ec200ea2ec83ec0ec6b636f57b729f0a /internal
parent3473a8496387246e7666ee45c801486d8d70bc4f (diff)
nametransform: ReadDirIVAt: return raw syscall error
Otherwise this can happen, as triggered by xfstests generic/011: go-fuse: can't convert error type: openat failed: too many open files The app then gets a misleading "Function not implemented" error.
Diffstat (limited to 'internal')
-rw-r--r--internal/nametransform/diriv.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/nametransform/diriv.go b/internal/nametransform/diriv.go
index 1e49ba1..09e9dd5 100644
--- a/internal/nametransform/diriv.go
+++ b/internal/nametransform/diriv.go
@@ -29,7 +29,7 @@ func ReadDirIVAt(dirfd int) (iv []byte, err error) {
fdRaw, err := syscallcompat.Openat(dirfd, DirIVFilename,
syscall.O_RDONLY|syscall.O_NOFOLLOW, 0)
if err != nil {
- return nil, fmt.Errorf("openat failed: %v", err)
+ return nil, err
}
fd := os.NewFile(uintptr(fdRaw), DirIVFilename)
defer fd.Close()