aboutsummaryrefslogtreecommitdiff
path: root/weed/mount/weedfs_dir_read.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-02-24 01:31:04 -0800
committerchrislu <chris.lu@gmail.com>2022-02-24 01:31:04 -0800
commit91f0481f4efde4133029009f15788b0f73dabcde (patch)
tree8d39ab8df0bad4f0e806fa8e5d06001f2e93a23b /weed/mount/weedfs_dir_read.go
parentabe7214c1f77c10c681dbb749f16138540045978 (diff)
downloadseaweedfs-91f0481f4efde4133029009f15788b0f73dabcde.tar.xz
seaweedfs-91f0481f4efde4133029009f15788b0f73dabcde.zip
mount2: SetAttr set mode correctly
Diffstat (limited to 'weed/mount/weedfs_dir_read.go')
-rw-r--r--weed/mount/weedfs_dir_read.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/mount/weedfs_dir_read.go b/weed/mount/weedfs_dir_read.go
index 913d0ebeb..a9d442856 100644
--- a/weed/mount/weedfs_dir_read.go
+++ b/weed/mount/weedfs_dir_read.go
@@ -160,7 +160,7 @@ func (wfs *WFS) doReadDirectory(input *fuse.ReadIn, out *fuse.DirEntryList, isPl
processEachEntryFn := func(entry *filer.Entry, isLast bool) bool {
dirEntry.Name = entry.Name()
- dirEntry.Mode = toSystemMode(entry.Mode)
+ dirEntry.Mode = toSyscallMode(entry.Mode)
if !isPlusMode {
inode := wfs.inodeToPath.Lookup(dirPath.Child(dirEntry.Name), entry.IsDirectory(), false)
dirEntry.Ino = inode