summaryrefslogtreecommitdiff
path: root/internal/fusefrontend/file_holes.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2020-08-16 19:58:47 +0200
committerJakob Unterwurzacher2020-08-16 19:58:47 +0200
commitd212b246c5e24e6151bef45ad5a8185fdd12a28f (patch)
treed1d2eecd9fb289b674c426d0ba2bddc6c21b60ff /internal/fusefrontend/file_holes.go
parent58a2726977a1b1f92063a1e51c0769af71833e72 (diff)
v2api/reverse: implement Lseek
Diffstat (limited to 'internal/fusefrontend/file_holes.go')
-rw-r--r--internal/fusefrontend/file_holes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fusefrontend/file_holes.go b/internal/fusefrontend/file_holes.go
index 85792f9..0d28004 100644
--- a/internal/fusefrontend/file_holes.go
+++ b/internal/fusefrontend/file_holes.go
@@ -61,7 +61,7 @@ func (f *File) Lseek(ctx context.Context, off uint64, whence uint32) (uint64, sy
cipherOff := f.rootNode.contentEnc.PlainSizeToCipherSize(off)
newCipherOff, err := syscall.Seek(f.intFd(), int64(cipherOff), int(whence))
if err != nil {
- return uint64(newCipherOff), fs.ToErrno(err)
+ return 0, fs.ToErrno(err)
}
newOff := f.contentEnc.CipherSizeToPlainSize(uint64(newCipherOff))
return newOff, 0