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
mount: fix fsync opened and renamed files
chrislu3639fedd0196
diff --git a/weed/mount/weedfs_file_sync.go b/weed/mount/weedfs_file_sync.goindex 8fb7c73b49..4c6dda6eb6 100644--- a/weed/mount/weedfs_file_sync.go+++ b/weed/mount/weedfs_file_sync.go@@ -96,7 +96,7 @@ func (wfs *WFS) Fsync(cancel <-chan struct{}, in *fuse.FsyncIn) (code fuse.Statufunc (wfs *WFS) doFlush(fh *FileHandle, uid, gid uint32) fuse.Status {// flush works at fh levelfileFullPath := fh.FullPath()- dir, _ := fileFullPath.DirAndName()+ dir, name := fileFullPath.DirAndName()// send the data to the OSglog.V(4).Infof("doFlush %s fh %d", fileFullPath, fh.handle)@@ -115,6 +115,7 @@ func (wfs *WFS) doFlush(fh *FileHandle, uid, gid uint32) fuse.Status {if entry == nil {return nil}+ entry.Name = name // this flush may be just after a rename operationif entry.Attributes != nil {entry.Attributes.Mime = fh.contentType