diff options
| author | ustuzhanin <55892859+ustuzhanin@users.noreply.github.com> | 2020-10-04 19:46:45 +0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-04 19:46:45 +0500 |
| commit | b3dd0ba446649d3a3fe56dba547585bf18b039b7 (patch) | |
| tree | fc22104e5b6b0ddd3c41ab02a72b2428130c2363 /weed/filesys/dir.go | |
| parent | 3e0a79ef050dba9e5347d20537ef562cc4b30b62 (diff) | |
| parent | 8c8b8e2835801992ecd75349281637ed8ecb88cd (diff) | |
| download | seaweedfs-b3dd0ba446649d3a3fe56dba547585bf18b039b7.tar.xz seaweedfs-b3dd0ba446649d3a3fe56dba547585bf18b039b7.zip | |
Merge pull request #2 from chrislusf/master
update from upstream
Diffstat (limited to 'weed/filesys/dir.go')
| -rw-r--r-- | weed/filesys/dir.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go index 7d93dbd9f..574749ef0 100644 --- a/weed/filesys/dir.go +++ b/weed/filesys/dir.go @@ -82,9 +82,9 @@ func (dir *Dir) Getxattr(ctx context.Context, req *fuse.GetxattrRequest, resp *f func (dir *Dir) setRootDirAttributes(attr *fuse.Attr) { attr.Inode = 1 // filer2.FullPath(dir.Path).AsInode() attr.Valid = time.Hour - attr.Uid = dir.entry.Attributes.Uid - attr.Gid = dir.entry.Attributes.Gid - attr.Mode = os.FileMode(dir.entry.Attributes.FileMode) + attr.Uid = dir.wfs.option.MountUid + attr.Gid = dir.wfs.option.MountGid + attr.Mode = dir.wfs.option.MountMode attr.Crtime = dir.wfs.option.MountCtime attr.Ctime = dir.wfs.option.MountCtime attr.Mtime = dir.wfs.option.MountMtime |
