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: optimize a bit when writing files
chrislu7542fd7f4df2
diff --git a/weed/mount/weedfs_file_mkrm.go b/weed/mount/weedfs_file_mkrm.goindex b5676eb028..1f6951b96f 100644--- a/weed/mount/weedfs_file_mkrm.go+++ b/weed/mount/weedfs_file_mkrm.go@@ -77,9 +77,10 @@ func (wfs *WFS) Mknod(cancel <-chan struct{}, in *fuse.MknodIn, name string, outdefer wfs.mapPbIdFromFilerToLocal(newEntry)request := &filer_pb.CreateEntryRequest{- Directory: string(dirFullPath),- Entry: newEntry,- Signatures: []int32{wfs.signature},+ Directory: string(dirFullPath),+ Entry: newEntry,+ Signatures: []int32{wfs.signature},+ SkipCheckParentDirectory: true,}glog.V(1).Infof("mknod: %v", request)diff --git a/weed/mount/weedfs_file_sync.go b/weed/mount/weedfs_file_sync.goindex c163948eac..1c80329c21 100644--- a/weed/mount/weedfs_file_sync.go+++ b/weed/mount/weedfs_file_sync.go@@ -140,9 +140,10 @@ func (wfs *WFS) doFlush(fh *FileHandle, uid, gid uint32) fuse.Status {}request := &filer_pb.CreateEntryRequest{- Directory: string(dir),- Entry: entry,- Signatures: []int32{wfs.signature},+ Directory: string(dir),+ Entry: entry,+ Signatures: []int32{wfs.signature},+ SkipCheckParentDirectory: true,}glog.V(4).Infof("%s set chunks: %v", fileFullPath, len(entry.Chunks))