Commit Graph
3237 Commits
Author SHA1 Message Date
Harshavardhana fe583468ce Vendorize new changes from minio-go (#2246)
This PR brings in changes for

- PutObjectStream with no content-length is heavily
  optimized so `mc pipe` will not run out of memory
  for large uploads.
- Fixes a bug in Signature v2 for HTTP requests.
- Support us-gov-west-1 region as well.
- Auto region handling is inside minio-go now.
2017-09-03 13:56:22 -07:00
Leo Arias 3f4d3ee1c0 Rename the snap to minio-client (#2243)
In linux, mc is midnight commander. In the traditional
linux distro world, name conflicts are forbidden. Because
we are trying to make this decentralized and self-serving,
we need less strict rules. For this, snap has a concept
of aliases. Then the user can decide what application owns
the mc name.
2017-08-31 14:48:43 -07:00
Aaron Walker dd3b659f9e session: Reimplement using sub-commands (#2225) 2017-08-17 10:55:32 -07:00
Harshavardhana dc47c3819a Enable ubuntu snaps for mc (#2235)
This PR will enable edge channel only.
2017-08-15 10:38:12 -07:00
Krishnan Parthasarathi e6ca983442 Fix credentials argument parsing (#2238) 2017-08-15 10:37:50 -07:00
Aditya Manthramurthy ca96cfc6e6 Move pkg/probe from vendor dir to package dir (#2236)
The probe package is no longer available in the Minio server
repo. This change just moves probe from the vendor directory to its
own dir under `pkg`.

This is a maintenance fix.
2017-08-14 11:13:38 -07:00
Harshavardhana 60681d7fb6 config: Provide meaningful errors for invalid URL and Alias. (#2233)
Fixes #2232
2017-08-06 11:35:01 -07:00
poornas e53ad24e8c Set region for mc from s3 endpoint when its available (#2234) 2017-08-04 14:26:37 -07:00
A. Elleuch b62fa406d8 share: Presign objects under a dir prefix (#2215)
From now on, when the user specifies to share a prefix which represents
a directory, all objects under that directory will be shared without
having to check for --recursive flag. If the latter is specified, all
objects in all subdirs will be shared.
2017-07-31 11:39:19 -07:00
poornas d066ff71f5 diff: reword help message (#2222) 2017-07-30 08:46:39 -07:00
Harshavardhana 3e2c3fc94d vendorize new changes from minio-go (#2227) 2017-07-30 08:44:05 -07:00
Carter McClellan c1b9079b73 Improved experimental log of mc admin heal to only appear on heal specific mc commands (#2230) 2017-07-30 08:43:42 -07:00
Dee Koder b9401d574f Correct typos in mc admin heal warning message. (#2219) 2017-07-27 14:32:19 -07:00
A. Elleuch eba548ca88 Add DisableCompression to override auto-decompress (#2216)
Fixes https://github.com/minio/mc/issues/2209
2017-07-20 11:32:23 -07:00
poornas b4d7ec07f4 Fix typo (#2218) 2017-07-20 11:31:56 -07:00
poornas 4753e1e61b Display watch help [FLAGS] before target (#2220) 2017-07-18 10:39:21 -07:00
Krishnan Parthasarathi 8d7888eb4f Improve mc-cp error message (#2208) 2017-07-15 12:11:21 -07:00
Carter McClellan 54a7460fa0 fix to mc admin (#2207) 2017-07-11 09:39:32 -07:00
Harshavardhana 5c135d25d6 mc: Vendorize minio-go this brings in streaming support. (#2203)
This PR brings following changes

- Brings streaming support for mc uploads.
- Brings support for copying objects upto 5TiB
  as a consequence of ComposeObject implementation
  in minio-go.
2017-07-06 20:41:34 +01:00
Harshavardhana 8391a69dc5 mirror/diff: Ignore errors during objectDifference. (#2200)
Files which are broken in symlink, not accessible
and unsupported should be ignored. We should proceed
to next object.

Fixes #2199
2017-07-06 09:17:34 -07:00
A. Elleuch 1b9beadf2b cat: Ignore Stat() error and pass to Get() (#2166)
* client: Avoid returning metadata with Get()

client-s3.Get() calls Stat() method because Get() is supposed to return
object metadata. This PR makes a change in client interface so metadata
is returned in Stat() method. This is beneficial for us to avoid calling
HEAD method in S3 when run `mc cat`

* cat: Ignore Stat() returned error

In case of cache gateway, HEAD objects returns 404 even though
objects are gettable. This PR ignores Stat() error since its
purpose in case of cat is to check if the download object size
is equal to what the server announced.
2017-07-04 08:13:57 -07:00
Harshavardhana 05f588fd19 mc: Inherit global flags for initialization messages. (#2189)
Fixes #2089
2017-06-26 09:10:14 -07:00
A. Elleuch d01a50d301 minio-go: Revendorize to update (#2194) 2017-06-24 12:03:22 -07:00
Harshavardhana 3b53bbe478 build: Fix release tags of filenames in release. (#2192) 2017-06-23 11:41:30 -07:00
Harshavardhana 685299ab75 mirror: Add timestamp check similar to aws s3 sync (#2188)
Currently `mc mirror` requires source to be
uploaded only if the size is different than the
object on remote server. This PR adds support to
check for last modified time of the source object
as well such that we upload if there are timestamp
differences as well.

Fixes #2187
2017-06-21 16:34:19 -07:00
Harshavardhana 1a8561115b Allow minio-go to validate bucket names. (#2183)
Related change in minio-go https://github.com/minio/minio-go/pull/708

Fixes minio/mc#2157
2017-06-21 21:12:10 +01:00
Minio Trusted c32b1ea48b Add -s -w for gen-ldflags.go 2017-06-14 20:34:56 -07:00
Nitish Tiwari ea05fcbcf5 Add Docker release files for mc (#2182)
- New Dockerfile will be used for mc release images.
- Statically built binary is downloaded from dl.minio.io website and used in the docker image.
2017-06-14 20:01:32 -07:00
Anis Elleuch 2d44e8c85e Fix travis and some code formatting (#2181) 2017-06-13 14:51:20 -07:00
CarterMcClellan 21c677fc2d config: default S3v2 for google endpoints (#2179) 2017-06-13 14:50:17 -07:00
Anis Elleuch 800f0af04e config: Hosts listing cuts fields and adds '...' (#2180)
New host list format when listing several hosts
```
myminiopublic :    http://localhost:9000
myminios      :    https://minio1.duckdns.org:...  Q3AM3UQ867SPQQA43P2F  zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG  S3v4
testazure     :    http://172.17.0.7:9000          myazureac             Gh5543wekitnifILbZam1KYY3TGlswRminio1...  S3v4
```

New host list format when listing one host:

```
azure:  http://localhost:9000  myazureac  Gh5543wekitnifILbZam1KYY3TGlswRminio1u7BJ86wekitnifILbZam1K==  S3v4
```
2017-06-12 14:06:50 -07:00
CarterMcClellan 398bac82d9 Changed install from source instructions. (#2178) 2017-06-08 15:08:49 -07:00
CarterMcClellan cd16de763c Updated build instructions from source. (#2177) 2017-06-08 20:39:34 +00:00
Harshavardhana 694ab27649 build/release: Add sha256sums for minio client releases. (#2171)
Additionally deprecate support for arm6vl platform.

Fixes #2151
2017-06-07 17:09:19 -07:00
Anis Elleuch 61f2595852 fix: Set quiet when term width is unavailable (#2173)
mc was asking the user to provide --quiet flag when terminal
width is not available for any reason. This PR tries to fetch
the terminal width at mc startup and automatically set quiet flag
when it fails to fetch the width.
2017-06-06 21:48:08 -07:00
Harshavardhana be3370396a Remove client instance being sent back in eventInfo() (#2167) 2017-06-05 07:44:22 -07:00
Nitish Tiwari fed9ebe39d - Call the progress bar Finish method once all files are updated (#2165)
- Fixes https://github.com/minio/mc/issues/2161
2017-05-26 18:17:50 +01:00
Anis Elleuch 6c677e0d11 mirror: Sync empty buckets (#2160) 2017-05-22 09:21:45 -07:00
Anis Elleuch 320e29e03f info: Show info of all cluster servers (#2149) 2017-05-22 00:13:35 -07:00
Harshavardhana 7f65ad4957 Add UTCNow() helper function (#2155)
This patch adds UTCNow() function which returns current UTC time.

This is equivalent of UTCNow() == time.Now().UTC()

Refer https://github.com/minio/minio/pull/3931
2017-05-16 18:50:54 +02:00
Anis Elleuch 372e905dad s3: Enforce virtual host style with China endpoint (#2153) 2017-05-11 09:19:12 -07:00
Harshavardhana 7027211e58 docs: Fix bash_autocomplete download link (#2150) 2017-05-10 09:10:04 -07:00
Harshavardhana f0ccc91890 fs: Allow copying to special files if possible. (#2146)
Fixes #2145
2017-05-03 11:21:02 -07:00
Anis Elleuch 136e286ef4 mb: Update pkg to retry mb with unmatched region (#2139) 2017-04-29 00:34:26 -07:00
Anis Elleuch e54962e17f mb: Add -p flag to ignore existing bucket/dir (#2143)
If a remote directory/bucket exists, -p will still make mb cmd
happy if the target already exists.
2017-04-28 13:13:44 -07:00
Marco Liceti 39aa635971 Added configure section with note for Docker users (#2141) 2017-04-26 13:50:32 -07:00
Anis Elleuch 61e511cc3e fs watch: Use a dynamically sized channel (#2109)
Write a growing/shrinking channel to be able to absorb filesystem
notify events even when they come in large numbers.
2017-04-24 01:01:11 -07:00
Scott McClellan dd9e715599 Improved Error Msg For Bucket Names that Contain non-LOWERCASE chars (#2134) (#2135) 2017-04-22 22:15:27 +01:00
Harshavardhana 9bdb7affb1 build: Fix add macOS source work-around for Go bug. (#2138)
Upstream bug https://github.com/golang/go/issues/19734

Fixes #2137
2017-04-20 22:42:10 +01:00
Anis Elleuch 9a881562b9 watch: Fix regression in watch local fs events (#2133) 2017-04-18 12:43:09 -07:00