mount: return ENOSYS rather than EIO on attempted link
This fixes FileZilla accessing an rclone mount served over sftp. See: https://forum.rclone.org/t/moving-files-on-rclone-mount-with-filezilla/5029
This commit is contained in:
parent
7ccc6080b0
commit
c1a3e363a6
1 changed files with 10 additions and 0 deletions
|
@ -183,3 +183,13 @@ func (d *Dir) Fsync(ctx context.Context, req *fuse.FsyncRequest) (err error) {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Check interface satisfied
|
||||
var _ fusefs.NodeLinker = (*Dir)(nil)
|
||||
|
||||
// Link creates a new directory entry in the receiver based on an
|
||||
// existing Node. Receiver must be a directory.
|
||||
func (d *Dir) Link(ctx context.Context, req *fuse.LinkRequest, old fusefs.Node) (new fusefs.Node, err error) {
|
||||
defer log.Trace(d, "req=%v, old=%v", req, old)("new=%v, err=%v", &new, &err)
|
||||
return nil, fuse.ENOSYS
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue