Change more cast to 'mirror' and fix some typos

This commit is contained in:
Harshavardhana
2015-07-30 23:20:12 -07:00
parent 37fac50f35
commit a700e37cf5
3 changed files with 14 additions and 14 deletions
+7 -7
View File
@@ -199,14 +199,14 @@ func doCopyCmdSession(session *sessionV2) {
isCopied := isCopiedFactory(session.Header.LastCopied)
wg := new(sync.WaitGroup)
// Limit numner of cast routines based on available CPU resources.
// Limit number of copy routines based on available CPU resources.
cpQueue := make(chan bool, int(math.Max(float64(runtime.NumCPU())-1, 1)))
defer close(cpQueue)
// Status channel for receiveing cast return status.
// Status channel for receiveing copy return status.
statusCh := make(chan copyURLs)
// Go routine to monitor doCast status and signal traps.
// Go routine to monitor doCopy status and signal traps.
wg.Add(1)
go func() {
defer wg.Done()
@@ -231,7 +231,7 @@ func doCopyCmdSession(session *sessionV2) {
}
}()
// Go routine to perform concurrently casting.
// Go routine to perform concurrently copying.
wg.Add(1)
go func() {
defer wg.Done()
@@ -244,13 +244,13 @@ func doCopyCmdSession(session *sessionV2) {
if isCopied(cpURLs.SourceContent.Name) {
doCopyFake(cpURLs, &bar)
} else {
// Wait for other cast routines to
// Wait for other copy routines to
// complete. We only have limited CPU
// and network resources.
cpQueue <- true
// Account for each cast routines we start.
// Account for each copy routines we start.
copyWg.Add(1)
// Do casting in background concurrently.
// Do copying in background concurrently.
go doCopy(cpURLs, &bar, cpQueue, copyWg, statusCh)
}
}
+6 -6
View File
@@ -2,25 +2,25 @@
```go
NAME:
mc mirror - Copy files and folders from a single source to many destinations
mc mirror - Mirror files and folders from a single source to many destinations
USAGE:
mc mirror SOURCE TARGET [TARGET...]
EXAMPLES:
1. Cast an object from local filesystem to Amazon S3 cloud storage.
1. Mirror an object from local filesystem to Amazon S3 cloud storage.
$ mc mirror star-trek-episode-10-season4.ogg https://s3.amazonaws.com/trekarchive
2. Cast a bucket recursively from Minio cloud storage to multiple buckets on Amazon S3 cloud storage.
2. Mirror a bucket recursively from Minio cloud storage to multiple buckets on Amazon S3 cloud storage.
$ mc mirror https://play.minio.io:9000/photos/2014... https://s3.amazonaws.com/backup-photos https://s3.amazonaws.com/my-photos
3. Cast a local folder recursively to Minio cloud storage and Amazon S3 cloud storage.
3. Mirror a local folder recursively to Minio cloud storage and Amazon S3 cloud storage.
$ mc mirror backup/... https://play.minio.io:9000/archive https://s3.amazonaws.com/archive
4. Cast a bucket from aliased Amazon S3 cloud storage to multiple folders on Windows.
4. Mirror a bucket from aliased Amazon S3 cloud storage to multiple folders on Windows.
$ mc mirror s3:documents/2014/... C:\backup\2014 C:\shared\volume\backup\2014
5. Cast a local file of non english character to Amazon s3 cloud storage.
5. Mirror a local file of non english character to Amazon s3 cloud storage.
$ mc mirror 本語/... s3:mylocaldocuments C:\backup\2014 play:backup
```
+1 -1
View File
@@ -34,7 +34,7 @@ import (
// Help message.
var mirrorCmd = cli.Command{
Name: "mirror",
Usage: "Copy files and folders from a single source to many destinations",
Usage: "Mirror files and folders from a single source to many destinations",
Action: runMirrorCmd,
CustomHelpTemplate: `NAME:
mc {{.Name}} - {{.Usage}}