aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/file.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-04-15 22:42:24 -0700
committerChris Lu <chris.lu@gmail.com>2021-04-15 22:42:24 -0700
commit3074e9b42850635b28f1ef90fc51e712210d5d45 (patch)
tree02abf2800977b75f74bfecbbb9a418bfd0e6ef60 /weed/filesys/file.go
parentb971317a167ac806a02947047c65ba6c2a2a7bad (diff)
downloadseaweedfs-3074e9b42850635b28f1ef90fc51e712210d5d45.tar.xz
seaweedfs-3074e9b42850635b28f1ef90fc51e712210d5d45.zip
ensure consistent inode value
Diffstat (limited to 'weed/filesys/file.go')
-rw-r--r--weed/filesys/file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filesys/file.go b/weed/filesys/file.go
index a6bc734f3..00a5ac279 100644
--- a/weed/filesys/file.go
+++ b/weed/filesys/file.go
@@ -55,7 +55,7 @@ func (file *File) Attr(ctx context.Context, attr *fuse.Attr) (err error) {
return fuse.ENOENT
}
- // attr.Inode = file.fullpath().AsInode()
+ attr.Inode = file.fullpath().AsInode()
attr.Valid = time.Second
attr.Mode = os.FileMode(entry.Attributes.FileMode)
attr.Size = filer.FileSize(entry)