Browse Source

set root node inode number

pull/2013/head
Chris Lu 4 years ago
parent
commit
372872ebbf
  1. 1
      weed/filesys/dir.go

1
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

Loading…
Cancel
Save