aboutsummaryrefslogtreecommitdiff
path: root/weed/command/mount.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2018-05-28 13:24:48 -0700
committerChris Lu <chris.lu@gmail.com>2018-05-28 13:24:48 -0700
commit8ab7dd9d08dbf326046bfcf0c1fac5d171600a7d (patch)
tree31740591e8c648bbee74f652cc44c5f637e4413a /weed/command/mount.go
parentd0b238d2db81093b7f02141d4f70b446fcd0b2cd (diff)
downloadseaweedfs-8ab7dd9d08dbf326046bfcf0c1fac5d171600a7d.tar.xz
seaweedfs-8ab7dd9d08dbf326046bfcf0c1fac5d171600a7d.zip
weed mount add options for collection and replication
Diffstat (limited to 'weed/command/mount.go')
-rw-r--r--weed/command/mount.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/weed/command/mount.go b/weed/command/mount.go
index 746e4b92e..151c6bedf 100644
--- a/weed/command/mount.go
+++ b/weed/command/mount.go
@@ -1,8 +1,10 @@
package command
type MountOptions struct {
- filer *string
- dir *string
+ filer *string
+ dir *string
+ collection *string
+ replication *string
}
var (
@@ -14,6 +16,8 @@ func init() {
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")
}
var cmdMount = &Command{