Commit Graph
3250 Commits
Author SHA1 Message Date
A. Elleuch 7d062fb08c cat: Print ^? for unprintable characters (#2217)
In terminals, cat avoids directly printing some binary characters, such
as control characters or non printable characters but prints ^? instead,
that way, cat will avoid corrupting terminals
2017-10-04 16:49:35 -07:00
Harshavardhana 37e5a78779 Fix and honor --json flag for find command. (#2263)
Currently `mc find` didn't honor `--json` flag properly,
this PR addresses that.

Additionally also take care of `List` returning errors
and handle them appropriately.

Fixes #2252
2017-10-03 16:49:36 -07:00
Bala FA 07e810fd51 Ignore test_watch_object() for mint in functional test (#2267) 2017-10-03 10:31:47 -07:00
poornas 224e602e59 Allow multipart threads to be configured via environment variable (#2254) 2017-10-02 19:45:08 -07:00
Bala FA be710ecb52 rename assert functions for correct meaning in functional tests (#2266) 2017-10-02 13:22:03 -07:00
A. Elleuch 4810ab8727 tests: Add negative put object & make bucket tests (#2262)
Add new negative tests to functional tests. For that purpose, two functions are
introduced. assert_success makes sure that the passed command returns 0 exit code
and raise an error otherwise. assert_failure makes sure that the passed
command fails and raises an error otherwise.
2017-10-01 11:24:35 -07:00
chibiegg 5a2798dddb Support copy in parallel (#2258) 2017-09-29 14:36:16 -07:00
Nitish Tiwari 36d7d0b9a7 Update quiet flag usage to indicate it only turns off progress bar (#2257)
Fixes https://github.com/minio/mc/issues/2240
2017-09-26 10:17:17 -07:00
Bala FA b1812ebe5a add functional tests (#2253)
Functional tests are automatically run when `make test` is executed.
2017-09-19 12:31:00 -07:00
Leo Arias 683fcf0dd2 Add the install instructions for the snap (#2244) 2017-09-11 08:15:23 -07:00
Carter McClellan 39197ea3ae Fix parsing error with mc find --older, and --newer (#2249) 2017-09-08 10:40:32 -07:00
Harshavardhana 48bd32570f Fix find help text formatting. (#2247) 2017-09-07 11:11:08 -07:00
Carter McClellan 49ef42d36a Implement mc find (#2201) 2017-09-05 15:44:10 -07:00
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