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
fail fast if user configures collection for a bucket
Chris Lu9add554feb53
diff --git a/weed/shell/command_fs_configure.go b/weed/shell/command_fs_configure.goindex 86e8f1d188..bdef8b5e73 100644--- a/weed/shell/command_fs_configure.go+++ b/weed/shell/command_fs_configure.go@@ -7,6 +7,7 @@ import ("io""math""net/http"+ "strings""github.com/chrislusf/seaweedfs/weed/filer""github.com/chrislusf/seaweedfs/weed/pb/filer_pb"@@ -88,6 +89,9 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer ioTtl: *ttl,Fsync: *fsync,}+ if *collection != "" && strings.HasPrefix(*locationPrefix, "/buckets/") {+ return fmt.Errorf("one s3 bucket goes to one collection and not customizable.")+ }if *isDelete {fc.DeleteLocationConf(*locationPrefix)} else {