mirror of
https://github.com/rclone/rclone.git
synced 2024-12-22 07:01:46 +01:00
nfsmount,serve nfs: introduce symlink support #2975
This commit is contained in:
parent
d629102fa6
commit
4e7ee9310e
@ -142,16 +142,16 @@ func (f *FS) Lstat(filename string) (fi os.FileInfo, err error) {
|
||||
return fi, nil
|
||||
}
|
||||
|
||||
// Symlink is not supported over NFS
|
||||
// Symlink creates a link pointing to target
|
||||
func (f *FS) Symlink(target, link string) (err error) {
|
||||
defer log.Trace(target, "link=%q", link)("err=%v", &err)
|
||||
return os.ErrInvalid
|
||||
return f.vfs.Symlink(target, link)
|
||||
}
|
||||
|
||||
// Readlink is not supported
|
||||
// Readlink reads the contents of link
|
||||
func (f *FS) Readlink(link string) (result string, err error) {
|
||||
defer log.Trace(link, "")("result=%q, err=%v", &result, &err)
|
||||
return "", os.ErrInvalid
|
||||
return f.vfs.Readlink(link)
|
||||
}
|
||||
|
||||
// Chmod changes the file modes
|
||||
|
Loading…
Reference in New Issue
Block a user