aboutsummaryrefslogtreecommitdiff
path: root/weed/command/mount.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-06-02 00:35:03 -0700
committerChris Lu <chris.lu@gmail.com>2018-06-02 00:35:03 -0700
commitc546c309f10154688431433c031d62dc20edfc85 (patch)
tree69670656b3f740cd1f05e8fe646d2cae51c9aff5 /weed/command/mount.go
parent3a3553dc463a8f5f5739b58e325da4f14650517b (diff)
parenta146a48ccc16848a9c2f24b64864e9566db8ab7c (diff)
downloadseaweedfs-c546c309f10154688431433c031d62dc20edfc85.tar.xz
seaweedfs-c546c309f10154688431433c031d62dc20edfc85.zip
Merge branch 'filer2_development'
Diffstat (limited to 'weed/command/mount.go')
-rw-r--r--weed/command/mount.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/weed/command/mount.go b/weed/command/mount.go
index 746e4b92e..6ba3b3697 100644
--- a/weed/command/mount.go
+++ b/weed/command/mount.go
@@ -1,8 +1,11 @@
package command
type MountOptions struct {
- filer *string
- dir *string
+ filer *string
+ dir *string
+ collection *string
+ replication *string
+ chunkSizeLimitMB *int
}
var (
@@ -11,9 +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", 16, "local write buffer size, also chunk large files")
}
var cmdMount = &Command{