fix the help message

This commit is contained in:
Chris Lu
2020-06-21 08:31:20 -07:00
parent de5ca9b258
commit b4ec04d464
2 changed files with 4 additions and 1 deletions

View File

@@ -134,6 +134,9 @@ func (v VolumeServerOptions) startVolumeServer(volumeFolders, maxVolumeCounts, v
glog.Fatalf("The value specified in -minFreeSpacePercent not a valid value %s", freeString)
}
}
if len(v.folders) != len(v.minFreeSpacePercent) {
glog.Fatalf("%d directories by -dir, but only %d max is set by -max", len(v.folders), len(v.folderMaxLimits))
}
for _, folder := range v.folders {
if err := util.TestFolderWritable(folder); err != nil {