Skip to content

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.

refactor(shell): readability improvements (#3704)

Ryan Russell824f7ad9e192
diff --git a/weed/shell/command_fs_configure.go b/weed/shell/command_fs_configure.go
index 1bf42b9ab0..60edb79c25 100644
--- a/weed/shell/command_fs_configure.go
+++ b/weed/shell/command_fs_configure.go
@@ -98,7 +98,7 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer io
return fmt.Errorf("parse replication %s: %v", *replication, err)
}
if *volumeGrowthCount%rp.GetCopyCount() != 0 {
- return fmt.Errorf("volumeGrowthCount %d should be devided by replication copy count %d", *volumeGrowthCount, rp.GetCopyCount())
+ return fmt.Errorf("volumeGrowthCount %d should be divided by replication copy count %d", *volumeGrowthCount, rp.GetCopyCount())
}
}
diff --git a/weed/shell/command_lock_unlock.go b/weed/shell/command_lock_unlock.go
index a69be21c73..a214ea91c4 100644
--- a/weed/shell/command_lock_unlock.go
+++ b/weed/shell/command_lock_unlock.go
@@ -21,7 +21,7 @@ func (c *commandLock) Name() string {
func (c *commandLock) Help() string {
return `lock in order to exclusively manage the cluster
- This is a blocking operation if there is alread another lock.
+ This is a blocking operation if there is already another lock.
`
}
diff --git a/weed/shell/command_remote_meta_sync.go b/weed/shell/command_remote_meta_sync.go
index ebd43c3263..bc90757462 100644
--- a/weed/shell/command_remote_meta_sync.go
+++ b/weed/shell/command_remote_meta_sync.go
@@ -96,7 +96,7 @@ After caching the file content, the entry.RemoteEntry will be
remoteEntry.LastLocalSyncTsNs == time.Now.UnixNano()
Attributes.FileSize = uint64(remoteEntry.RemoteSize)
Attributes.Mtime = remoteEntry.RemoteMtime
- chunks = non-emtpy
+ chunks = non-empty
When "weed filer.remote.sync" to upload local changes to remote, the criteria is:
diff --git a/weed/shell/command_s3_circuitbreaker_test.go b/weed/shell/command_s3_circuitbreaker_test.go
index 3d0b4ac6e4..d1d92f9f89 100644
--- a/weed/shell/command_s3_circuitbreaker_test.go
+++ b/weed/shell/command_s3_circuitbreaker_test.go
@@ -285,7 +285,7 @@ func TestCircuitBreakerShell(t *testing.T) {
t.Error(err)
}
if !reflect.DeepEqual(actual, expect) {
- t.Fatal("result of s3 circuit breaker shell command is unexpect!")
+ t.Fatal("result of s3 circuit breaker shell command is unexpected!")
}
}
}
diff --git a/weed/shell/command_s3_clean_uploads.go b/weed/shell/command_s3_clean_uploads.go
index 831ca47c01..81af4bbb75 100644
--- a/weed/shell/command_s3_clean_uploads.go
+++ b/weed/shell/command_s3_clean_uploads.go
@@ -60,7 +60,7 @@ func (c *commandS3CleanUploads) Do(args []string, commandEnv *CommandEnv, writer
for _, bucket := range buckets {
if err := c.cleanupUploads(commandEnv, writer, filerBucketsPath, bucket, *uploadedTimeAgo, signingKey); err != nil {
- fmt.Fprintf(writer, fmt.Sprintf("failed cleanup uploads for backet %s: %v", bucket, err))
+ fmt.Fprintf(writer, fmt.Sprintf("failed cleanup uploads for bucket %s: %v", bucket, err))
}
}