diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-04-18 09:43:56 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-04-18 13:07:28 -0700 |
| commit | 372872ebbfa360e25ff63071166e9eaef6255df8 (patch) | |
| tree | 09d22c4325deed9c80fadb7dac0ea8e58ed09fea | |
| parent | e332da48371f28d42f71a0b33d48adb49f1f83db (diff) | |
| download | seaweedfs-372872ebbfa360e25ff63071166e9eaef6255df8.tar.xz seaweedfs-372872ebbfa360e25ff63071166e9eaef6255df8.zip | |
set root node inode number
| -rw-r--r-- | weed/filesys/dir.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/filesys/dir.go b/weed/filesys/dir.go index f6f1c2562..77e6724e1 100644 --- a/weed/filesys/dir.go +++ b/weed/filesys/dir.go @@ -92,6 +92,7 @@ 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.Second + attr.Inode = dir.Id() attr.Uid = dir.wfs.option.MountUid attr.Gid = dir.wfs.option.MountGid attr.Mode = dir.wfs.option.MountMode |
