aboutsummaryrefslogtreecommitdiff
path: root/weed/util
diff options
context:
space:
mode:
Diffstat (limited to 'weed/util')
-rw-r--r--weed/util/constants.go8
-rw-r--r--weed/util/constants_4bytes.go8
-rw-r--r--weed/util/constants_5bytes.go8
3 files changed, 22 insertions, 2 deletions
diff --git a/weed/util/constants.go b/weed/util/constants.go
index 0a4980e6f..1ed60b26f 100644
--- a/weed/util/constants.go
+++ b/weed/util/constants.go
@@ -1,5 +1,9 @@
package util
-const (
- VERSION = "1.28"
+import (
+ "fmt"
+)
+
+var (
+ VERSION = fmt.Sprintf("%s %d.%d", sizeLimit, 1, 28)
)
diff --git a/weed/util/constants_4bytes.go b/weed/util/constants_4bytes.go
new file mode 100644
index 000000000..a29d9d3b0
--- /dev/null
+++ b/weed/util/constants_4bytes.go
@@ -0,0 +1,8 @@
+// +build !5BytesOffset
+
+package util
+
+const (
+ sizeLimit = "30GB"
+ VolumeSizeLimitGB = 30
+)
diff --git a/weed/util/constants_5bytes.go b/weed/util/constants_5bytes.go
new file mode 100644
index 000000000..91ce4066f
--- /dev/null
+++ b/weed/util/constants_5bytes.go
@@ -0,0 +1,8 @@
+// +build 5BytesOffset
+
+package util
+
+const (
+ sizeLimit = "8000GB"
+ VolumeSizeLimitGB = 8000
+)