diff --git a/weed/mount/weedfs.go b/weed/mount/weedfs.go index 1234fa005..14a135e04 100644 --- a/weed/mount/weedfs.go +++ b/weed/mount/weedfs.go @@ -306,6 +306,9 @@ func (wfs *WFS) lookupEntry(fullpath util.FullPath) (*filer.Entry, fuse.Status) glog.V(1).Infof("lookupEntry GetEntry %s: %v", fullpath, err) return nil, fuse.ENOENT } + if entry != nil && entry.Attributes != nil && wfs.option.UidGidMapper != nil { + entry.Attributes.Uid, entry.Attributes.Gid = wfs.option.UidGidMapper.FilerToLocal(entry.Attributes.Uid, entry.Attributes.Gid) + } return filer.FromPbEntry(dir, entry), fuse.OK }