Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

serve nfs: fix missing inode numbers which was messing up ls -laR

Nick Craig-Wood30ef1ddb23c5
diff --git a/cmd/serve/nfs/filesystem.go b/cmd/serve/nfs/filesystem.go
index da44bc6f7..15e786c49 100644
--- a/cmd/serve/nfs/filesystem.go
+++ b/cmd/serve/nfs/filesystem.go
@@ -3,7 +3,6 @@
package nfs
import (
- "math"
"os"
"path"
"strings"
@@ -37,7 +36,7 @@ func setSys(fi os.FileInfo) {
Nlink: 1,
UID: vfs.Opt.UID,
GID: vfs.Opt.GID,
- Fileid: math.MaxUint64, // without this mounting doesn't work on Linux
+ Fileid: node.Inode(), // without this mounting doesn't work on Linux
}
node.SetSys(&stat)
}