SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
mount2: dir read opened file
chrislub93d57da31fa
diff --git a/weed/mount/weedfs_dir_lookup.go b/weed/mount/weedfs_dir_lookup.goindex 4eceb5ce43..6d0e1d6fa9 100644--- a/weed/mount/weedfs_dir_lookup.go+++ b/weed/mount/weedfs_dir_lookup.go@@ -55,6 +55,11 @@ func (wfs *WFS) Lookup(cancel <-chan struct{}, header *fuse.InHeader, name strininode := wfs.inodeToPath.Lookup(fullFilePath, localEntry.IsDirectory(), true)+ if fh, found := wfs.fhmap.FindFileHandle(inode); found {+ glog.V(4).Infof("lookup opened file %s size %d", dirPath.Child(localEntry.Name()), filer.FileSize(fh.entry))+ localEntry = filer.FromPbEntry(string(dirPath), fh.entry)+ }+wfs.outputFilerEntry(out, inode, localEntry)return fuse.OKdiff --git a/weed/mount/weedfs_dir_read.go b/weed/mount/weedfs_dir_read.goindex 9e85879958..913d0ebebd 100644--- a/weed/mount/weedfs_dir_read.go+++ b/weed/mount/weedfs_dir_read.go@@ -176,6 +176,10 @@ func (wfs *WFS) doReadDirectory(input *fuse.ReadIn, out *fuse.DirEntryList, isPlisEarlyTerminated = truereturn false}+ if fh, found := wfs.fhmap.FindFileHandle(inode); found {+ glog.V(4).Infof("readdir opened file %s", dirPath.Child(dirEntry.Name))+ entry = filer.FromPbEntry(string(dirPath), fh.entry)+ }wfs.outputFilerEntry(entryOut, inode, entry)}dh.lastEntryName = entry.Name()