aboutsummaryrefslogtreecommitdiff
path: root/weed/command/filer_copy.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-12-13 11:59:32 -0800
committerChris Lu <chris.lu@gmail.com>2020-12-13 11:59:32 -0800
commit0d2ec832e2ced90371f2c5549b175d5b93becd1a (patch)
tree8f4fddcc88491331b0e395c1606b8cb9d6d00513 /weed/command/filer_copy.go
parent715b199eeb6fbd3f028b99e42097096fdcac5e09 (diff)
downloadseaweedfs-0d2ec832e2ced90371f2c5549b175d5b93becd1a.tar.xz
seaweedfs-0d2ec832e2ced90371f2c5549b175d5b93becd1a.zip
rename from volumeType to diskType
Diffstat (limited to 'weed/command/filer_copy.go')
-rw-r--r--weed/command/filer_copy.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go
index 1102a8cff..ea7a96047 100644
--- a/weed/command/filer_copy.go
+++ b/weed/command/filer_copy.go
@@ -37,7 +37,7 @@ type CopyOptions struct {
replication *string
collection *string
ttl *string
- volumeType *string
+ diskType *string
maxMB *int
masterClient *wdclient.MasterClient
concurrenctFiles *int
@@ -55,7 +55,7 @@ func init() {
copy.replication = cmdCopy.Flag.String("replication", "", "replication type")
copy.collection = cmdCopy.Flag.String("collection", "", "optional collection name")
copy.ttl = cmdCopy.Flag.String("ttl", "", "time to live, e.g.: 1m, 1h, 1d, 1M, 1y")
- copy.volumeType = cmdCopy.Flag.String("volumeType", "", "[hdd|ssd] choose between hard drive or solid state drive")
+ copy.diskType = cmdCopy.Flag.String("diskType", "", "[hdd|ssd] choose between hard drive or solid state drive")
copy.maxMB = cmdCopy.Flag.Int("maxMB", 32, "split files larger than the limit")
copy.concurrenctFiles = cmdCopy.Flag.Int("c", 8, "concurrent file copy goroutines")
copy.concurrenctChunks = cmdCopy.Flag.Int("concurrentChunks", 8, "concurrent chunk copy goroutines for each file")
@@ -313,7 +313,7 @@ func (worker *FileCopyWorker) uploadFileAsOne(task FileCopyTask, f *os.File) err
Replication: *worker.options.replication,
Collection: *worker.options.collection,
TtlSec: worker.options.ttlSec,
- VolumeType: *worker.options.volumeType,
+ DiskType: *worker.options.diskType,
Path: task.destinationUrlPath,
}
@@ -408,7 +408,7 @@ func (worker *FileCopyWorker) uploadFileInChunks(task FileCopyTask, f *os.File,
Replication: *worker.options.replication,
Collection: *worker.options.collection,
TtlSec: worker.options.ttlSec,
- VolumeType: *worker.options.volumeType,
+ DiskType: *worker.options.diskType,
Path: task.destinationUrlPath + fileName,
}