aboutsummaryrefslogtreecommitdiff
path: root/weed/command/mount.go
diff options
context:
space:
mode:
authorbingoohuang <bingoo.huang@gmail.com>2021-02-18 14:05:51 +0800
committerbingoohuang <bingoo.huang@gmail.com>2021-02-18 14:05:51 +0800
commit352ac2f2712177d6a9c8220bab73823ff6748581 (patch)
tree88b5976b0e9382883ba21a20098c319a8787c002 /weed/command/mount.go
parenteab6e31d34bb22beeb1ca416596c44b1590075c0 (diff)
parentc8f56f5712c1efffc46de95a8057ed09c21da2db (diff)
downloadseaweedfs-352ac2f2712177d6a9c8220bab73823ff6748581.tar.xz
seaweedfs-352ac2f2712177d6a9c8220bab73823ff6748581.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'weed/command/mount.go')
-rw-r--r--weed/command/mount.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/weed/command/mount.go b/weed/command/mount.go
index fce3eba22..aa6d91740 100644
--- a/weed/command/mount.go
+++ b/weed/command/mount.go
@@ -12,6 +12,7 @@ type MountOptions struct {
dirAutoCreate *bool
collection *string
replication *string
+ diskType *string
ttlSec *int
chunkSizeLimitMB *int
concurrentWriters *int
@@ -41,6 +42,7 @@ func init() {
mountOptions.dirAutoCreate = cmdMount.Flag.Bool("dirAutoCreate", false, "auto create the directory to mount to")
mountOptions.collection = cmdMount.Flag.String("collection", "", "collection to create the files")
mountOptions.replication = cmdMount.Flag.String("replication", "", "replication(e.g. 000, 001) to create to files. If empty, let filer decide.")
+ mountOptions.diskType = cmdMount.Flag.String("disk", "", "[hdd|ssd] hard drive or solid state drive")
mountOptions.ttlSec = cmdMount.Flag.Int("ttl", 0, "file ttl in seconds")
mountOptions.chunkSizeLimitMB = cmdMount.Flag.Int("chunkSizeLimitMB", 2, "local write buffer size, also chunk large files")
mountOptions.concurrentWriters = cmdMount.Flag.Int("concurrentWriters", 128, "limit concurrent goroutine writers if not 0")