aboutsummaryrefslogtreecommitdiff
path: root/weed/command/volume.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-06-21 08:34:24 -0700
committerChris Lu <chris.lu@gmail.com>2020-06-21 08:34:24 -0700
commit8b4a32e78292eb16a96a93d513d097ff45e17e42 (patch)
treedae2c7602973e3e124eed2619277fbae64090681 /weed/command/volume.go
parentb4ec04d4646de48ce134248876bf0e14b70b6eba (diff)
downloadseaweedfs-8b4a32e78292eb16a96a93d513d097ff45e17e42.tar.xz
seaweedfs-8b4a32e78292eb16a96a93d513d097ff45e17e42.zip
adjust help message
Diffstat (limited to 'weed/command/volume.go')
-rw-r--r--weed/command/volume.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/weed/command/volume.go b/weed/command/volume.go
index 951f5ec00..f2107f836 100644
--- a/weed/command/volume.go
+++ b/weed/command/volume.go
@@ -88,9 +88,9 @@ var cmdVolume = &Command{
var (
volumeFolders = cmdVolume.Flag.String("dir", os.TempDir(), "directories to store data files. dir[,dir]...")
- maxVolumeCounts = cmdVolume.Flag.String("max", "7", "maximum numbers of volumes, count[,count]... If set to zero on non-windows OS, the limit will be auto configured.")
+ maxVolumeCounts = cmdVolume.Flag.String("max", "7", "maximum numbers of volumes, count[,count]... If set to zero, the limit will be auto configured.")
volumeWhiteListOption = cmdVolume.Flag.String("whiteList", "", "comma separated Ip addresses having write permission. No limit if empty.")
- minFreeSpacePercent = cmdVolume.Flag.String("minFreeSpacePercent", "0", "minimum free disk space(in percents). If free disk space lower this value - all volumes marks as ReadOnly")
+ minFreeSpacePercent = cmdVolume.Flag.String("minFreeSpacePercent", "0", "minimum free disk space(in percents). Low disk space will mark all volumes as ReadOnly.")
)
func runVolume(cmd *Command, args []string) bool {
@@ -127,7 +127,6 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v
}
minFreeSpacePercentStrings := strings.Split(minFreeSpacePercent, ",")
for _, freeString := range minFreeSpacePercentStrings {
-
if value, e := strconv.ParseFloat(freeString, 32); e == nil {
v.minFreeSpacePercent = append(v.minFreeSpacePercent, float32(value))
} else {