aboutsummaryrefslogtreecommitdiff
path: root/weed/command/mount.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-05-28 13:42:25 -0700
committerChris Lu <chris.lu@gmail.com>2018-05-28 13:42:25 -0700
commit5c4480ec6c941e16efd4157ee98e67d21b5859fb (patch)
tree3ffe96a1f48ebee3f2348fd18c0a5ff9c618818f /weed/command/mount.go
parent8ab7dd9d08dbf326046bfcf0c1fac5d171600a7d (diff)
downloadseaweedfs-5c4480ec6c941e16efd4157ee98e67d21b5859fb.tar.xz
seaweedfs-5c4480ec6c941e16efd4157ee98e67d21b5859fb.zip
add mountOptions.chunkSizeLimitMB, remove cmdMount.IsDebug
Diffstat (limited to 'weed/command/mount.go')
-rw-r--r--weed/command/mount.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/weed/command/mount.go b/weed/command/mount.go
index 151c6bedf..f0514b93a 100644
--- a/weed/command/mount.go
+++ b/weed/command/mount.go
@@ -1,10 +1,11 @@
package command
type MountOptions struct {
- filer *string
- dir *string
- collection *string
- replication *string
+ filer *string
+ dir *string
+ collection *string
+ replication *string
+ chunkSizeLimitMB *int
}
var (
@@ -13,11 +14,11 @@ var (
func init() {
cmdMount.Run = runMount // break init cycle
- cmdMount.IsDebug = cmdMount.Flag.Bool("debug", false, "verbose debug information")
mountOptions.filer = cmdMount.Flag.String("filer", "localhost:8888", "weed filer location")
mountOptions.dir = cmdMount.Flag.String("dir", ".", "mount weed filer to this directory")
mountOptions.collection = cmdMount.Flag.String("collection", "", "collection to create the files")
mountOptions.replication = cmdMount.Flag.String("replication", "000", "replication to create to files")
+ mountOptions.chunkSizeLimitMB = cmdMount.Flag.Int("chunkSizeLimitMB", 0, "if set, limit the chunk size in MB")
}
var cmdMount = &Command{