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
Add codespell support with configuration and typo fixes (#10393)
Yaroslav Halchenko490379bff351
diff --git a/.codespellrc b/.codespellrcnew file mode 100644index 0000000000..82b2e1396d--- /dev/null+++ b/.codespellrc@@ -0,0 +1,22 @@+[codespell]+# Ref: https://github.com/codespell-project/codespell#using-a-config-file+skip = .git,.git-meta,.gitignore,.gitattributes,*.svg,go.sum,vendor,*.lock,*.css,*.min.*,.codespellrc,*_templ.go+check-hidden = true+# Ignore camelCase and PascalCase identifiers (very common in Go/Rust/JS+# source, e.g. allLocations, publishErr, ReadInside, FlushInterval).+ignore-regex = \b[a-z]+[A-Z]\w*\b|\b[A-Z][a-z]+[A-Z]\w*\b+# visibles: variable name for VisibleInterval collections in filer/mount code+# fo: `*FilerOptions` receiver name (e.g. `func (fo *FilerOptions) ...`)+# te: "truncate error" local variable (e.g. `if te := w.Truncate(end); te != nil`)+# ser: Rust serde serializer variable (`serde_json::ser`, `let mut ser = ...`)+# bject: intentional wildcard test data (e.g. `s3:Get?bject` matching `s3:GetObject`)+# unparseable: accepted alternate spelling used throughout the codebase+# keep-alives: correct plural of the technical term (SSH/HTTP keep-alive)+# tread: valid English word in the idiom "tread carefully" (help text)+# anc: variable abbreviation for "ancestor" in tree/path tests+# ue: appears inside JSON test fixtures with embedded escaped quotes (Bl\"ue)+# auther: local variable meaning "authenticator" (tls.go: `auther := Authenticator{}`)+# thirdparty: literal Maven groupId `org.apache.hadoop.thirdparty` (external, cannot rename)+# unknwon: GitHub username / Go module path (`github.com/unknwon/goconfig`)+# atleast: CLI mode literal string in test/benchmark/fuse_db/bin/sqlite_verify.py+ignore-words-list = visibles,fo,te,ser,bject,unparseable,keep-alives,tread,anc,ue,auther,thirdparty,unknwon,atleastdiff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.ymlnew file mode 100644index 0000000000..9458b0c8f3--- /dev/null+++ b/.github/workflows/codespell.yml@@ -0,0 +1,23 @@+# Codespell configuration is within .codespellrc+---+name: Codespell++on:+ push:+ branches: [master]+ pull_request:+ branches: [master]++permissions:+ contents: read++jobs:+ codespell:+ name: Check for spelling errors+ runs-on: ubuntu-latest++ steps:+ - name: Checkout+ uses: actions/checkout@v6+ - name: Codespell+ uses: codespell-project/actions-codespell@8f01853be192eb0f849a5c7d721450e7a467c579 # v2.2diff --git a/README.md b/README.mdindex fd610aa235..eea7207755 100644--- a/README.md+++ b/README.md@@ -510,7 +510,7 @@ SeaweedFS Filer uses off-the-shelf stores, such as MySql, Postgres, Sqlite, Mong### Compared to MinIO ###-Please note, as Apr 25, 2026 MinIO ceased developement. It's strongly discouraged to use that unmaintained software with multiple security bugs.+Please note, as Apr 25, 2026 MinIO ceased development. It's strongly discouraged to use that unmaintained software with multiple security bugs.MinIO followed AWS S3 closely and was ideal for testing for S3 API. It had good UI, policies, versionings, etc. SeaweedFS is trying to catch up here.diff --git a/docker/tarantool/storage.lua b/docker/tarantool/storage.luaindex ff1ec02886..5ab244ae40 100644--- a/docker/tarantool/storage.lua+++ b/docker/tarantool/storage.lua@@ -46,7 +46,7 @@ local filer_metadata = {delete_by_directory_idx = function(directory)local space = box.space.filer_metadatalocal index = space.index.directory_idx- -- for each finded directories+ -- for each found directoryfor _, tuple in index:pairs({ directory }, { iterator = 'EQ' }) dospace:delete({ tuple[1], tuple[3] })end@@ -64,7 +64,7 @@ local filer_metadata = {end-- init resultslocal results = {}- -- for each finded directories+ -- for each found directoryfor _, tuple in directory_idx:pairs({ dirPath }, { iterator = 'EQ' }) do-- filter by nameif filter_filename_func(tuple[3]) thendiff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yamlindex a016e782ba..f20726fea0 100644--- a/k8s/charts/seaweedfs/values.yaml+++ b/k8s/charts/seaweedfs/values.yaml@@ -125,7 +125,7 @@ master:# annotations:# "key": "value"#- # You may also spacify an existing claim:+ # You may also specify an existing claim:# data:# type: "existingClaim"# claimName: "my-pvc"@@ -351,7 +351,7 @@ volume:# "key": "value"# maxVolumes: 0 # If set to zero on non-windows OS, the limit will be auto configured. (default "7")#- # You may also spacify an existing claim:+ # You may also specify an existing claim:# - name: data# type: "existingClaim"# claimName: "my-pvc"diff --git a/other/java/client/src/main/java/seaweedfs/client/SeaweedInputStream.java b/other/java/client/src/main/java/seaweedfs/client/SeaweedInputStream.javaindex 48a508db01..138c59a6ba 100644--- a/other/java/client/src/main/java/seaweedfs/client/SeaweedInputStream.java+++ b/other/java/client/src/main/java/seaweedfs/client/SeaweedInputStream.java@@ -205,7 +205,7 @@ public class SeaweedInputStream extends InputStream {* length returned is the length* as of the time the Stream was opened. Specifically, if there have been* subsequent appends to the file,- * they wont be reflected in the returned length.+ * they won't be reflected in the returned length.** @return length of the file.* @throws IOException if the stream is closeddiff --git a/other/java/hdfs3/src/main/java/seaweed/hdfs/SeaweedHadoopInputStream.java b/other/java/hdfs3/src/main/java/seaweed/hdfs/SeaweedHadoopInputStream.javaindex 8ac5a5ab4e..42f763c0c5 100644--- a/other/java/hdfs3/src/main/java/seaweed/hdfs/SeaweedHadoopInputStream.java+++ b/other/java/hdfs3/src/main/java/seaweed/hdfs/SeaweedHadoopInputStream.java@@ -82,7 +82,7 @@ public class SeaweedHadoopInputStream extends FSInputStream {* length returned is the length* as of the time the Stream was opened. Specifically, if there have been* subsequent appends to the file,- * they wont be reflected in the returned length.+ * they won't be reflected in the returned length.** @return length of the file.* @throws IOException if the stream is closeddiff --git a/other/java/s3copier/src/test/java/com/seaweedfs/s3/PutObjectTest.java b/other/java/s3copier/src/test/java/com/seaweedfs/s3/PutObjectTest.javaindex 0404dab602..ba6f61aa8e 100644--- a/other/java/s3copier/src/test/java/com/seaweedfs/s3/PutObjectTest.java+++ b/other/java/s3copier/src/test/java/com/seaweedfs/s3/PutObjectTest.java@@ -29,7 +29,7 @@ public class PutObjectTest}/**- * Rigourous Test :-)+ * Rigorous Test :-)*/public void testApp(){diff --git a/seaweed-volume/src/storage/store_ec_reconcile.rs b/seaweed-volume/src/storage/store_ec_reconcile.rsindex 1f9494f2f2..cfc27c7cd1 100644--- a/seaweed-volume/src/storage/store_ec_reconcile.rs+++ b/seaweed-volume/src/storage/store_ec_reconcile.rs@@ -57,7 +57,7 @@ struct DatOwnerInfo {}/// Key for orphan-shard reconciliation: collection + volume id. Two-/// collections can re-use the same volume id, and we must only pair+/// collections can reuse the same volume id, and we must only pair/// shards with their own `.ecx`.#[derive(Clone, Debug, PartialEq, Eq, Hash)]struct EcKey {diff --git a/test/s3/compatibility/README.md b/test/s3/compatibility/README.mdindex 5f57cdc9ca..deee563fa9 100644--- a/test/s3/compatibility/README.md+++ b/test/s3/compatibility/README.md@@ -34,7 +34,7 @@ DEBUG=y ./run.sh>> If your output does *not* look like the content in [`results.summary.txt`](./results.summary.txt)> and it is full of HTTP level exceptions, there is likely an error contacting the `weed` server from-> the container that is runnin the S3 compatibility tests.+> the container that is running the S3 compatibility tests.>> There are at least a couple ways to solve this:>diff --git a/test/s3tables/table-buckets/s3tables_integration_test.go b/test/s3tables/table-buckets/s3tables_integration_test.goindex f48c3f0462..80b711e478 100644--- a/test/s3tables/table-buckets/s3tables_integration_test.go+++ b/test/s3tables/table-buckets/s3tables_integration_test.go@@ -61,7 +61,7 @@ func TestS3TablesIntegration(t *testing.T) {t.Skip("Skipping integration test in short mode")}- // Re-use the shared cluster started by TestMain.+ // Reuse the shared cluster started by TestMain.client := NewS3TablesClient(sharedCluster.s3Endpoint, testRegion, testAccessKey, testSecretKey)// Run test suitediff --git a/test/samba/smb.conf.template b/test/samba/smb.conf.templateindex 0e89f275fd..9bcb8a5119 100644--- a/test/samba/smb.conf.template+++ b/test/samba/smb.conf.template@@ -45,7 +45,7 @@[seaweedfs]path = @SHARE_PATH@comment = SeaweedFS share backed by a FUSE mount- browseable = yes+ browsable = yesread only = nocreate mask = 0644directory mask = 0755diff --git a/weed/command/benchmark.go b/weed/command/benchmark.goindex 86d9b358da..ad0dbadc4c 100644--- a/weed/command/benchmark.go+++ b/weed/command/benchmark.go@@ -400,7 +400,7 @@ const (benchBucket = 1000000000 / benchResolution)-// An efficient statics collecting and rendering+// An efficient statistics collecting and renderingtype stats struct {data []intoverflow []intdiff --git a/weed/command/filer_remote_gateway.go b/weed/command/filer_remote_gateway.goindex 2156c1655a..4f03b7927f 100644--- a/weed/command/filer_remote_gateway.go+++ b/weed/command/filer_remote_gateway.go@@ -59,8 +59,8 @@ func init() {remoteGatewayOptions.createBucketRandomSuffix = cmdFilerRemoteGateway.Flag.Bool("createBucketWithRandomSuffix", true, "add randomized suffix to bucket name to avoid conflicts")remoteGatewayOptions.readChunkFromFiler = cmdFilerRemoteGateway.Flag.Bool("filerProxy", false, "read file chunks from filer instead of volume servers")remoteGatewayOptions.timeAgo = cmdFilerRemoteGateway.Flag.Duration("timeAgo", 0, "start time before now. \"300ms\", \"1.5h\" or \"2h45m\". Valid time units are \"ns\", \"us\" (or \"µs\"), \"ms\", \"s\", \"m\", \"h\"")- remoteGatewayOptions.include = cmdFilerRemoteGateway.Flag.String("include", "", "pattens of new bucket names, e.g., s3*")- remoteGatewayOptions.exclude = cmdFilerRemoteGateway.Flag.String("exclude", "", "pattens of new bucket names, e.g., local*")+ remoteGatewayOptions.include = cmdFilerRemoteGateway.Flag.String("include", "", "patterns of new bucket names, e.g., s3*")+ remoteGatewayOptions.exclude = cmdFilerRemoteGateway.Flag.String("exclude", "", "patterns of new bucket names, e.g., local*")remoteGatewayOptions.clientId = util.RandomInt32()}diff --git a/weed/command/server.go b/weed/command/server.goindex 2866fc298b..e76c3e0e44 100644--- a/weed/command/server.go+++ b/weed/command/server.go@@ -128,7 +128,7 @@ func init() {filerOptions.showUIDirectoryDelete = cmdServer.Flag.Bool("filer.ui.deleteDir", true, "enable filer UI show delete directory button")filerOptions.downloadMaxMBps = cmdServer.Flag.Int("filer.downloadMaxMBps", 0, "download max speed for each download request, in MB per second")filerOptions.diskType = cmdServer.Flag.String("filer.disk", "", "[hdd|ssd|<tag>] hard drive or solid state drive or any tag")- filerOptions.exposeDirectoryData = cmdServer.Flag.Bool("filer.exposeDirectoryData", true, "expose directory data via filer. If false, filer UI will be innaccessible.")+ filerOptions.exposeDirectoryData = cmdServer.Flag.Bool("filer.exposeDirectoryData", true, "expose directory data via filer. If false, filer UI will be inaccessible.")filerOptions.tusBasePath = cmdServer.Flag.String("filer.tusBasePath", "/.tus", "TUS resumable upload endpoint base path (e.g., /.tus)")serverOptions.v.port = cmdServer.Flag.Int("volume.port", 8080, "volume server http listen port")diff --git a/weed/command/upload.go b/weed/command/upload.goindex 313d7b4a63..bb542a030c 100644--- a/weed/command/upload.go+++ b/weed/command/upload.go@@ -38,7 +38,7 @@ func init() {cmdUpload.IsDebug = cmdUpload.Flag.Bool("debug", false, "verbose debug information")upload.master = cmdUpload.Flag.String("master", "localhost:9333", "SeaweedFS master location")upload.dir = cmdUpload.Flag.String("dir", "", "Upload the whole folder recursively if specified.")- upload.include = cmdUpload.Flag.String("include", "", "pattens of files to upload, e.g., *.pdf, *.html, ab?d.txt, works together with -dir")+ upload.include = cmdUpload.Flag.String("include", "", "patterns of files to upload, e.g., *.pdf, *.html, ab?d.txt, works together with -dir")upload.replication = cmdUpload.Flag.String("replication", "", "replication type")upload.collection = cmdUpload.Flag.String("collection", "", "optional collection name")upload.dataCenter = cmdUpload.Flag.String("dataCenter", "", "optional data center name")diff --git a/weed/filer/filer_on_meta_event.go b/weed/filer/filer_on_meta_event.goindex b5d7d03412..5644e632b6 100644--- a/weed/filer/filer_on_meta_event.go+++ b/weed/filer/filer_on_meta_event.go@@ -89,7 +89,7 @@ func (f *Filer) maybeReloadFilerConfiguration(event *filer_pb.SubscribeMetadataRreturn}- glog.V(0).Infof("procesing %v", event)+ glog.V(0).Infof("processing %v", event)if entry.Name == FilerConfName {f.reloadFilerConfiguration(entry)}diff --git a/weed/filer/redis/README.md b/weed/filer/redis/README.mdindex 5fff2dbf79..65bf169ce8 100644--- a/weed/filer/redis/README.md+++ b/weed/filer/redis/README.md@@ -1,5 +1,5 @@Deprecated by redis2.-This implementaiton uses unsorted set. For example, add a directory child via SAdd.+This implementation uses unsorted set. For example, add a directory child via SAdd.Redis2 moves to sorted set. Adding a child uses ZAddNX.\ No newline at end of filediff --git a/weed/images/orientation.go b/weed/images/orientation.goindex 5f3964005c..006b31955d 100644--- a/weed/images/orientation.go+++ b/weed/images/orientation.go@@ -133,7 +133,7 @@ func rotate(im image.Image, angle int) image.Image {// flip returns a flipped version of the image im, according to// the direction(s) in dir.-// It may flip the imput im in place and return it, or it may allocate a+// It may flip the input im in place and return it, or it may allocate a// new NRGBA (if im is an *image.YCbCr).func flip(im image.Image, dir FlipDirection) image.Image {if dir == 0 {diff --git a/weed/mq/broker/broker_grpc_pub.go b/weed/mq/broker/broker_grpc_pub.goindex 4604394eba..7e5aea0058 100644--- a/weed/mq/broker/broker_grpc_pub.go+++ b/weed/mq/broker/broker_grpc_pub.go@@ -30,7 +30,7 @@ import (// Re-balance topic partitions for publishing// 1. collect stats from all the brokers// 2. Rebalance and configure new generation of partitions on brokers-// 3. Tell brokers to close current gneration of publishing.+// 3. Tell brokers to close current generation of publishing.// Publishers needs to lookup again and publish to the new generation of partitions.// Re-balance topic partitions for subscribingdiff --git a/weed/mq/client/pub_client/scheduler.go b/weed/mq/client/pub_client/scheduler.goindex 97cbfffee7..b6a2f688e7 100644--- a/weed/mq/client/pub_client/scheduler.go+++ b/weed/mq/client/pub_client/scheduler.go@@ -121,7 +121,7 @@ func (p *TopicPublisher) onEachAssignments(generation int, assignments []*mq_pb.}(job)jobs = append(jobs, job)// TODO assuming this is not re-configured so the partitions are fixed.- // better just re-use the existing job+ // better just reuse the existing jobp.partition2Buffer.Insert(assignment.Partition.RangeStart, assignment.Partition.RangeStop, job.inputQueue)}p.jobs = jobsdiff --git a/weed/mq/kafka/protocol/joingroup.go b/weed/mq/kafka/protocol/joingroup.goindex 32ec21afe6..f06638d810 100644--- a/weed/mq/kafka/protocol/joingroup.go+++ b/weed/mq/kafka/protocol/joingroup.go@@ -192,7 +192,7 @@ func (h *Handler) handleJoinGroup(connContext *ConnectionContext, correlationID// leader's upcoming SyncGroup will omit this member. That leaves it// with an empty Assignment when the group goes Stable, and its own// SyncGroup then silently serves the empty assignment (the- // CI-observed orphan). Pre-empt that: bump the generation so the+ // CI-observed orphan). Preempt that: bump the generation so the// leader's in-flight SyncGroup fails its generation check and the// join cycle restarts with the new member in the leader's snapshot.// (handleSyncGroup also catches this at commit time as adiff --git a/weed/mq/schema/struct_to_schema_test.go b/weed/mq/schema/struct_to_schema_test.goindex 9f21b854c2..65dcc48bcd 100644--- a/weed/mq/schema/struct_to_schema_test.go+++ b/weed/mq/schema/struct_to_schema_test.go@@ -61,7 +61,7 @@ func TestStructToSchema(t *testing.T) {RecordTypeEnd(),},{- name: "nested simpe structs",+ name: "nested simple structs",args: args{instance: struct {Field1 intdiff --git a/weed/pb/proto_read_write_test.go b/weed/pb/proto_read_write_test.goindex 06dc136b0d..9bcd8dfa05 100644--- a/weed/pb/proto_read_write_test.go+++ b/weed/pb/proto_read_write_test.go@@ -22,7 +22,7 @@ func TestJsonpMarshalUnmarshal(t *testing.T) {}if text, err := m.Marshal(tv); err != nil {- fmt.Printf("marshal eror: %v\n", err)+ fmt.Printf("marshal error: %v\n", err)} else {fmt.Printf("marshalled: %s\n", string(text))}diff --git a/weed/s3api/bucket_metadata_test.go b/weed/s3api/bucket_metadata_test.goindex ef8ef0ca23..14cea39968 100644--- a/weed/s3api/bucket_metadata_test.go+++ b/weed/s3api/bucket_metadata_test.go@@ -170,7 +170,7 @@ func TestBuildBucketMetadata(t *testing.T) {for _, tc := range tcs {resultBucketMetadata := buildBucketMetadata(iam, tc.filerEntry)if !reflect.DeepEqual(resultBucketMetadata, tc.expectBucketMetadata) {- t.Fatalf("result is unexpect: \nresult: %v, \nexpect: %v", resultBucketMetadata, tc.expectBucketMetadata)+ t.Fatalf("result is unexpected: \nresult: %v, \nexpect: %v", resultBucketMetadata, tc.expectBucketMetadata)}}}diff --git a/weed/s3api/s3api_object_handlers_copy_stream.go b/weed/s3api/s3api_object_handlers_copy_stream.goindex a25a631c88..acba56caff 100644--- a/weed/s3api/s3api_object_handlers_copy_stream.go+++ b/weed/s3api/s3api_object_handlers_copy_stream.go@@ -87,7 +87,7 @@ func (s3a *S3ApiServer) streamCopyChunkRange(}// Child context so a terminal error here unblocks both legs// immediately. Without this, a failed POST closes pipeReader- // (which only fails the producer's writes), but the source GET's+ // (which only fails the producer's writes), but the source GET's //codespell:ignore// read loop would keep draining srcResp.Body in the background// until EOF — wasting source-volume bandwidth and CPU on a copy// that's already failed. Cancelling streamCtx tears down both thediff --git a/weed/s3api/s3err/audit_fluent.go b/weed/s3api/s3err/audit_fluent.goindex f037d8f591..45374c6ec6 100644--- a/weed/s3api/s3err/audit_fluent.go+++ b/weed/s3api/s3err/audit_fluent.go@@ -112,28 +112,28 @@ func getREST(httpMetod string, resourceType string) string {return fmt.Sprintf("REST.%s.%s", httpMetod, resourceType)}-func getResourceType(object string, query_key string, metod string) (string, bool) {+func getResourceType(object string, query_key string, method string) (string, bool) {if object == "/" {switch query_key {case "delete":return "BATCH.DELETE.OBJECT", truecase "tagging":- return getREST(metod, "OBJECTTAGGING"), true+ return getREST(method, "OBJECTTAGGING"), truecase "lifecycle":- return getREST(metod, "LIFECYCLECONFIGURATION"), true+ return getREST(method, "LIFECYCLECONFIGURATION"), truecase "acl":- return getREST(metod, "ACCESSCONTROLPOLICY"), true+ return getREST(method, "ACCESSCONTROLPOLICY"), truecase "policy":- return getREST(metod, "BUCKETPOLICY"), true+ return getREST(method, "BUCKETPOLICY"), truedefault:- return getREST(metod, "BUCKET"), false+ return getREST(method, "BUCKET"), false}} else {switch query_key {case "tagging":- return getREST(metod, "OBJECTTAGGING"), true+ return getREST(method, "OBJECTTAGGING"), truedefault:- return getREST(metod, "OBJECT"), false+ return getREST(method, "OBJECT"), false}}}diff --git a/weed/sftpd/sftp_permissions.go b/weed/sftpd/sftp_permissions.goindex 035785d766..8eea53f60a 100644--- a/weed/sftpd/sftp_permissions.go+++ b/weed/sftpd/sftp_permissions.go@@ -40,7 +40,7 @@ type EntryAttributes struct {SymlinkTarget string}-// PermissionError represents a permission-related erro+// PermissionError represents a permission-related error// CheckFilePermission verifies if a user has the required permission on a path// It first checks if the path is in the user's home directory with explicit permissions.diff --git a/weed/shell/command_remote_uncache.go b/weed/shell/command_remote_uncache.goindex bd47b4c33b..d3d4371b34 100644--- a/weed/shell/command_remote_uncache.go+++ b/weed/shell/command_remote_uncache.go@@ -141,8 +141,8 @@ type FileFilter struct {func newFileFilter(remoteMountCommand *flag.FlagSet) (ff *FileFilter) {ff = &FileFilter{}- ff.include = remoteMountCommand.String("include", "", "pattens of file names, e.g., *.pdf, *.html, ab?d.txt")- ff.exclude = remoteMountCommand.String("exclude", "", "pattens of file names, e.g., *.pdf, *.html, ab?d.txt")+ ff.include = remoteMountCommand.String("include", "", "patterns of file names, e.g., *.pdf, *.html, ab?d.txt")+ ff.exclude = remoteMountCommand.String("exclude", "", "patterns of file names, e.g., *.pdf, *.html, ab?d.txt")ff.minSize = remoteMountCommand.Int64("minSize", -1, "minimum file size in bytes")ff.maxSize = remoteMountCommand.Int64("maxSize", -1, "maximum file size in bytes")ff.minAge = remoteMountCommand.Int64("minAge", -1, "minimum file age in seconds (created time)")diff --git a/weed/shell/command_volume_server_state.go b/weed/shell/command_volume_server_state.goindex 2eccfd0ae0..9ab850f568 100644--- a/weed/shell/command_volume_server_state.go+++ b/weed/shell/command_volume_server_state.go@@ -40,7 +40,7 @@ func (c *commandVolumeServerState) Help() string {Additionally, if any flags are provided, these are appliedto the selected node(s). The command will display the resulting- state for each node *after* the state is updated. For exmaple...+ state for each node *after* the state is updated. For example...volumeServer.state --nodes 192.168.10.111:9000 --maintenanceOndiff --git a/weed/storage/backend/memory_map/memory_map_windows.go b/weed/storage/backend/memory_map/memory_map_windows.goindex 4392dbcc94..a019c4836d 100644--- a/weed/storage/backend/memory_map/memory_map_windows.go+++ b/weed/storage/backend/memory_map/memory_map_windows.go@@ -152,7 +152,7 @@ func allocate(hMapFile windows.Handle, offset uint64, length uint64, write bool)mBuffer := MemoryBuffer{}- //align memory allocations to the minium virtual memory allocation size+ //align memory allocations to the minimum virtual memory allocation sizedwSysGran := systemInfo.dwAllocationGranularitystart := (offset / uint64(dwSysGran)) * uint64(dwSysGran)diff --git a/weed/storage/needle_map/compact_map.go b/weed/storage/needle_map/compact_map.goindex d28b6c95cc..df3c86d250 100644--- a/weed/storage/needle_map/compact_map.go+++ b/weed/storage/needle_map/compact_map.go@@ -1,8 +1,8 @@package needle_map-/* CompactMap is an in-memory map of needle indeces, optimized for memory usage.+/* CompactMap is an in-memory map of needle indices, optimized for memory usage.*- * It's implemented as a map of sorted indeces segments, which are in turn accessed through binary+ * It's implemented as a map of sorted indices segments, which are in turn accessed through binary* search. This guarantees a best-case scenario (ordered inserts/updates) of O(1) and a worst case* scenario of O(log n) runtime, with memory usage unaffected by insert ordering.*@@ -163,7 +163,7 @@ func (cs *CompactMapSegment) set(key types.NeedleId, offset types.Offset, size treturn}-// get seeks a map entry by key. Returns an entry pointer, with a boolean specifiying if the entry was found.+// get seeks a map entry by key. Returns an entry pointer, with a boolean specifying if the entry was found.func (cs *CompactMapSegment) get(key types.NeedleId) (*CompactNeedleValue, bool) {if i, found := cs.bsearchKey(key); found {return &cs.list[i], true@@ -243,7 +243,7 @@ func (cm *CompactMap) Set(key types.NeedleId, offset types.Offset, size types.Sireturn cs.set(key, offset, size)}-// Get seeks a map entry by key. Returns an entry pointer, with a boolean specifiying if the entry was found.+// Get seeks a map entry by key. Returns an entry pointer, with a boolean specifying if the entry was found.func (cm *CompactMap) Get(key types.NeedleId) (*NeedleValue, bool) {cm.RLock()defer cm.RUnlock()diff --git a/weed/storage/needle_map/compact_map_test.go b/weed/storage/needle_map/compact_map_test.goindex ae3a433539..1d0931ac4d 100644--- a/weed/storage/needle_map/compact_map_test.go+++ b/weed/storage/needle_map/compact_map_test.go@@ -37,7 +37,7 @@ func TestSegmentBsearchKey(t *testing.T) {wantFound: false,},{- name: "new key, insert at beggining",+ name: "new key, insert at beginning",cs: testSegment,key: 5,wantIndex: 0,@@ -141,7 +141,7 @@ func TestSegmentSet(t *testing.T) {wantSize types.Size}{{- name: "insert at beggining",+ name: "insert at beginning",key: 5, offset: types.Uint32ToOffset(1000), size: 123,wantOffset: types.Uint32ToOffset(0), wantSize: 0,},diff --git a/weed/storage/store_ec_reconcile.go b/weed/storage/store_ec_reconcile.goindex 43cad01642..3a430bdbfa 100644--- a/weed/storage/store_ec_reconcile.go+++ b/weed/storage/store_ec_reconcile.go@@ -23,7 +23,7 @@ type datOwnerInfo struct {}// ecKeyForReconcile keys orphan-shard reconciliation by collection + volume-// id. Per-collection grouping matters because two collections can re-use the+// id. Per-collection grouping matters because two collections can reuse the// same volume id, and we must only pair shards with their own .ecx file.type ecKeyForReconcile struct {collection stringdiff --git a/weed/util/skiplist/skiplist.go b/weed/util/skiplist/skiplist.goindex 8bd62bf7a7..45a460f1f6 100644--- a/weed/util/skiplist/skiplist.go+++ b/weed/util/skiplist/skiplist.go@@ -499,7 +499,7 @@ func (t *SkipList) Prev(e *SkipListElement) (*SkipListElement, error) {// ChangeValue can be used to change the actual value of a node in the skiplist// without the need of Deleting and reinserting the node again.// Be advised, that ChangeValue only works, if the actual key from ExtractKey() will stay the same!-// ok is an indicator, wether the value is actually changed.+// ok is an indicator, whether the value is actually changed.func (t *SkipList) ChangeValue(e *SkipListElement, newValue []byte) (err error) {// The key needs to stay correct, so this is very important!e.Value = newValue