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
Improve filer command help, add supported filer store list
yulai.liaf23e63e3fe9
diff --git a/weed/command/filer.go b/weed/command/filer.goindex c9f9a1956c..7e0e92d4a7 100644--- a/weed/command/filer.go+++ b/weed/command/filer.go@@ -6,10 +6,13 @@ import ("net/http""os""runtime"+ "sort"+ "strings""time""google.golang.org/grpc/reflection"+ "github.com/chrislusf/seaweedfs/weed/filer""github.com/chrislusf/seaweedfs/weed/glog""github.com/chrislusf/seaweedfs/weed/pb""github.com/chrislusf/seaweedfs/weed/pb/filer_pb"@@ -114,10 +117,8 @@ func init() {filerIamOptions.port = cmdFiler.Flag.Int("iam.port", 8111, "iam server http listen port")}-var cmdFiler = &Command{- UsageLine: "filer -port=8888 -master=<ip:port>[,<ip:port>]*",- Short: "start a file server that points to a master server, or a list of master servers",- Long: `start a file server which accepts REST operation for any files.+func filerLongDesc() string {+ desc := `start a file server which accepts REST operation for any files.//create or overwrite the file, the directories /path/to will be automatically createdPOST /path/to/file@@ -133,7 +134,22 @@ var cmdFiler = &Command{The example filer.toml configuration file can be generated by "weed scaffold -config=filer"-`,+Supported Filer Stores:+`++ storeNames := make([]string, len(filer.Stores))+ for i, store := range filer.Stores {+ storeNames[i] = "\t" + store.GetName()+ }+ sort.Strings(storeNames)+ storeList := strings.Join(storeNames, "\n")+ return desc + storeList+}++var cmdFiler = &Command{+ UsageLine: "filer -port=8888 -master=<ip:port>[,<ip:port>]*",+ Short: "start a file server that points to a master server, or a list of master servers",+ Long: filerLongDesc(),}func runFiler(cmd *Command, args []string) bool {