|
@ -11,6 +11,7 @@ type MountOptions struct { |
|
|
dir *string |
|
|
dir *string |
|
|
dirAutoCreate *bool |
|
|
dirAutoCreate *bool |
|
|
collection *string |
|
|
collection *string |
|
|
|
|
|
collectionQuota *int |
|
|
replication *string |
|
|
replication *string |
|
|
diskType *string |
|
|
diskType *string |
|
|
ttlSec *int |
|
|
ttlSec *int |
|
@ -44,6 +45,7 @@ func init() { |
|
|
mountOptions.dir = cmdMount.Flag.String("dir", ".", "mount weed filer to this directory") |
|
|
mountOptions.dir = cmdMount.Flag.String("dir", ".", "mount weed filer to this directory") |
|
|
mountOptions.dirAutoCreate = cmdMount.Flag.Bool("dirAutoCreate", false, "auto create the directory to mount to") |
|
|
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.collection = cmdMount.Flag.String("collection", "", "collection to create the files") |
|
|
|
|
|
mountOptions.collectionQuota = cmdMount.Flag.Int("collectionQuotaMB", 0, "quota for the collection") |
|
|
mountOptions.replication = cmdMount.Flag.String("replication", "", "replication(e.g. 000, 001) to create to files. If empty, let filer decide.") |
|
|
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|<tag>] hard drive or solid state drive or any tag") |
|
|
mountOptions.diskType = cmdMount.Flag.String("disk", "", "[hdd|ssd|<tag>] hard drive or solid state drive or any tag") |
|
|
mountOptions.ttlSec = cmdMount.Flag.Int("ttl", 0, "file ttl in seconds") |
|
|
mountOptions.ttlSec = cmdMount.Flag.Int("ttl", 0, "file ttl in seconds") |
|
|