mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Adjust dir parameter default value.
This commit is contained in:
parent
c86ae76e02
commit
7272af8ec4
|
@ -21,7 +21,7 @@ var cmdCompact = &Command{
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
compactVolumePath = cmdCompact.Flag.String("dir", "/tmp", "data directory to store files")
|
compactVolumePath = cmdCompact.Flag.String("dir", ".", "data directory to store files")
|
||||||
compactVolumeCollection = cmdCompact.Flag.String("collection", "", "volume collection name")
|
compactVolumeCollection = cmdCompact.Flag.String("collection", "", "volume collection name")
|
||||||
compactVolumeId = cmdCompact.Flag.Int("volumeId", -1, "a volume id. The volume should already exist in the dir.")
|
compactVolumeId = cmdCompact.Flag.Int("volumeId", -1, "a volume id. The volume should already exist in the dir.")
|
||||||
)
|
)
|
||||||
|
|
|
@ -35,7 +35,7 @@ var cmdExport = &Command{
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
exportVolumePath = cmdExport.Flag.String("dir", "/tmp", "input data directory to store volume data files")
|
exportVolumePath = cmdExport.Flag.String("dir", ".", "input data directory to store volume data files")
|
||||||
exportCollection = cmdExport.Flag.String("collection", "", "the volume collection name")
|
exportCollection = cmdExport.Flag.String("collection", "", "the volume collection name")
|
||||||
exportVolumeId = cmdExport.Flag.Int("volumeId", -1, "a volume id. The volume .dat and .idx files should already exist in the dir.")
|
exportVolumeId = cmdExport.Flag.Int("volumeId", -1, "a volume id. The volume .dat and .idx files should already exist in the dir.")
|
||||||
dest = cmdExport.Flag.String("o", "", "output tar file name, must ends with .tar, or just a \"-\" for stdout")
|
dest = cmdExport.Flag.String("o", "", "output tar file name, must ends with .tar, or just a \"-\" for stdout")
|
||||||
|
|
|
@ -22,7 +22,7 @@ var cmdFix = &Command{
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
fixVolumePath = cmdFix.Flag.String("dir", "/tmp", "data directory to store files")
|
fixVolumePath = cmdFix.Flag.String("dir", ".", "data directory to store files")
|
||||||
fixVolumeCollection = cmdFix.Flag.String("collection", "", "the volume collection name")
|
fixVolumeCollection = cmdFix.Flag.String("collection", "", "the volume collection name")
|
||||||
fixVolumeId = cmdFix.Flag.Int("volumeId", -1, "a volume id. The volume should already exist in the dir. The volume index file should not exist.")
|
fixVolumeId = cmdFix.Flag.Int("volumeId", -1, "a volume id. The volume should already exist in the dir. The volume index file should not exist.")
|
||||||
)
|
)
|
||||||
|
|
|
@ -13,7 +13,7 @@ func init() {
|
||||||
cmdMount.Run = runMount // break init cycle
|
cmdMount.Run = runMount // break init cycle
|
||||||
cmdMount.IsDebug = cmdMount.Flag.Bool("debug", false, "verbose debug information")
|
cmdMount.IsDebug = cmdMount.Flag.Bool("debug", false, "verbose debug information")
|
||||||
mountOptions.filer = cmdMount.Flag.String("filer", "localhost:8888", "weed filer location")
|
mountOptions.filer = cmdMount.Flag.String("filer", "localhost:8888", "weed filer location")
|
||||||
mountOptions.dir = cmdMount.Flag.String("dir", "", "mount weed filer to this directory")
|
mountOptions.dir = cmdMount.Flag.String("dir", ".", "mount weed filer to this directory")
|
||||||
}
|
}
|
||||||
|
|
||||||
var cmdMount = &Command{
|
var cmdMount = &Command{
|
||||||
|
|
Loading…
Reference in a new issue