1
mirror of https://github.com/rclone/rclone synced 2024-11-01 21:49:35 +01:00

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:
Nick Craig-Wood 2018-03-13 12:31:46 +00:00
parent 7ccc6080b0
commit c1a3e363a6

View File

@ -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
}