adjust error and log

This commit is contained in:
Chris Lu
2018-12-28 15:10:23 -08:00
parent 308ac1d0d2
commit 79168ab0bb
2 changed files with 4 additions and 4 deletions

View File

@@ -145,13 +145,13 @@ func (file *File) maybeLoadAttributes(ctx context.Context) error {
resp, err := client.LookupDirectoryEntry(ctx, request)
if err != nil {
glog.V(0).Infof("file attr read file %v: %v", request, err)
return err
glog.V(3).Infof("file attr read file %v: %v", request, err)
return fuse.ENOENT
}
file.entry = resp.Entry
glog.V(1).Infof("file attr %v %+v: %d", file.fullpath(), file.entry.Attributes, filer2.TotalSize(file.entry.Chunks))
glog.V(3).Infof("file attr %v %+v: %d", file.fullpath(), file.entry.Attributes, filer2.TotalSize(file.entry.Chunks))
file.wfs.listDirectoryEntriesCache.Set(file.fullpath(), file.entry, file.wfs.option.EntryCacheTtl)