From 0e6e72d46263a7041606a28edbd8285b4bbf900c Mon Sep 17 00:00:00 2001 From: Robert Coelho Date: Tue, 24 May 2022 13:02:59 -0400 Subject: [PATCH] mount: ReadDir return EIO on EnsureVisited err --- weed/mount/weedfs_dir_read.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/mount/weedfs_dir_read.go b/weed/mount/weedfs_dir_read.go index 6e65bec13..1baa68fa2 100644 --- a/weed/mount/weedfs_dir_read.go +++ b/weed/mount/weedfs_dir_read.go @@ -221,6 +221,7 @@ func (wfs *WFS) doReadDirectory(input *fuse.ReadIn, out *fuse.DirEntryList, isPl var err error if err = meta_cache.EnsureVisited(wfs.metaCache, wfs, dirPath, nil); err != nil { glog.Errorf("dir ReadDirAll %s: %v", dirPath, err) + return fuse.EIO } listErr := wfs.metaCache.ListDirectoryEntries(context.Background(), dirPath, lastEntryName, false, int64(math.MaxInt32), func(entry *filer.Entry) bool { dh.entryStream = append(dh.entryStream, entry)