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
fix empty file reading on linux
Chris Lu578f8a6dec0e
diff --git a/weed/filesys/filehandle.go b/weed/filesys/filehandle.goindex e862387935..cc2c070eb5 100644--- a/weed/filesys/filehandle.go+++ b/weed/filesys/filehandle.go@@ -51,8 +51,8 @@ func (fh *FileHandle) Read(ctx context.Context, req *fuse.ReadRequest, resp *fus// this value should come from the filer instead of the old fif len(fh.f.entry.Chunks) == 0 {- glog.V(0).Infof("empty fh %v/%v", fh.f.dir.Path, fh.f.Name)- return fmt.Errorf("empty file %v/%v", fh.f.dir.Path, fh.f.Name)+ glog.V(1).Infof("empty fh %v/%v", fh.f.dir.Path, fh.f.Name)+ return nil}buff := make([]byte, req.Size)