diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2020-09-24 18:21:34 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-24 18:21:34 -0700 |
| commit | 043b0631369bec00b33eb53cdf2cdef3eced006c (patch) | |
| tree | 72e1b320c3487aa5f6cb3cd5fc849bfd94108ec8 /weed/filesys/dir.go | |
| parent | dbf5327b9874bf7137eb53cbe04cd362efeb864c (diff) | |
| parent | 48c578410fea2128f81356250b2cd9d56074d878 (diff) | |
| download | seaweedfs-043b0631369bec00b33eb53cdf2cdef3eced006c.tar.xz seaweedfs-043b0631369bec00b33eb53cdf2cdef3eced006c.zip | |
Merge pull request #1482 from hilimd/master
Fix: s3 delete object
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 574749ef0..7d93dbd9f 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.wfs.option.MountUid - attr.Gid = dir.wfs.option.MountGid - attr.Mode = dir.wfs.option.MountMode + attr.Uid = dir.entry.Attributes.Uid + attr.Gid = dir.entry.Attributes.Gid + attr.Mode = os.FileMode(dir.entry.Attributes.FileMode) attr.Crtime = dir.wfs.option.MountCtime attr.Ctime = dir.wfs.option.MountCtime attr.Mtime = dir.wfs.option.MountMtime |
