mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-06 03:57:48 +01:00
add mountOptions.chunkSizeLimitMB, remove cmdMount.IsDebug
This commit is contained in:
1 parent
8ab7dd9d08
commit
5c4480ec6c
4 files changed
+17
-8
No files matched your search
@@ -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{
|
||||
|
||||
Reference in new issue
Block a user