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
rename: handle hard links
chrislub05962b90e84
diff --git a/weed/filer/filerstore_hardlink.go b/weed/filer/filerstore_hardlink.goindex 316c76a0c3..64f41aaba4 100644--- a/weed/filer/filerstore_hardlink.go+++ b/weed/filer/filerstore_hardlink.go@@ -9,12 +9,16 @@ import ()func (fsw *FilerStoreWrapper) handleUpdateToHardLinks(ctx context.Context, entry *Entry) error {- if len(entry.HardLinkId) == 0 {++ if entry.IsDirectory() {return nil}- // handle hard links- if err := fsw.setHardLink(ctx, entry); err != nil {- return fmt.Errorf("setHardLink %d: %v", entry.HardLinkId, err)++ if len(entry.HardLinkId) > 0 {+ // handle hard links+ if err := fsw.setHardLink(ctx, entry); err != nil {+ return fmt.Errorf("setHardLink %d: %v", entry.HardLinkId, err)+ }}// check what is existing entry