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
adjusted regex to be from 1 to 255 for the value (#4377)
Mattda1d3b5a3335
diff --git a/weed/shell/command_fs_configure.go b/weed/shell/command_fs_configure.goindex d09ea08823..d8a160e26b 100644--- a/weed/shell/command_fs_configure.go+++ b/weed/shell/command_fs_configure.go@@ -105,11 +105,11 @@ func (c *commandFsConfigure) Do(args []string, commandEnv *CommandEnv, writer io// check ttlif *ttl != "" {- regex := "^[1-9][0-9]*[mhdwMy]$"+ regex := "^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)[mhdwMy]$"match, _ := regexp.MatchString(regex, *ttl)if !match {- return fmt.Errorf("ttl should be of the following format (e.g., 1m, 1h, 1d, 1w, 1y)")+ return fmt.Errorf("ttl should be of the following format [1 to 255][unit] (e.g., 5m, 2h, 180d, 1w, 2y)")}}