mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 14:06:44 +08:00
mount: remove nonseekable flag from write files - fixes #3461
Before this change rclone marked files opened for write without VFS cache with the non seekable flag. This caused problems with rclone mount layerd with mergerfs. This change removes the hint and lets rclone do all the checking for seekability.
This commit is contained in:
parent
941dde6940
commit
341d880027
|
@ -4,7 +4,6 @@ package mount
|
|||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
"time"
|
||||
|
||||
"bazil.org/fuse"
|
||||
|
@ -74,11 +73,6 @@ func (f *File) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenR
|
|||
return nil, translateError(err)
|
||||
}
|
||||
|
||||
// See if seeking is supported and set FUSE hint accordingly
|
||||
if _, err = handle.Seek(0, io.SeekCurrent); err != nil {
|
||||
resp.Flags |= fuse.OpenNonSeekable
|
||||
}
|
||||
|
||||
return &FileHandle{handle}, nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user