summaryrefslogtreecommitdiff
path: root/internal/syscallcompat/getdents_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/syscallcompat/getdents_linux.go')
-rw-r--r--internal/syscallcompat/getdents_linux.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/syscallcompat/getdents_linux.go b/internal/syscallcompat/getdents_linux.go
index 49f9233..1b3569b 100644
--- a/internal/syscallcompat/getdents_linux.go
+++ b/internal/syscallcompat/getdents_linux.go
@@ -61,7 +61,10 @@ func getdents(fd int) ([]fuse.DirEntry, error) {
offset += int(s.Reclen)
numEntries++
}
- // Parse the buffer into entries
+ // Parse the buffer into entries.
+ // Note: syscall.ParseDirent() only returns the names,
+ // we want all the data, so we have to implement
+ // it on our own.
entries := make([]fuse.DirEntry, 0, numEntries)
offset = 0
for offset < len(buf) {