Commit Graph
87 Commits
Author SHA1 Message Date
Krishnan Parthasarathi 3d7796f38c Vendorize recent fixes to minio-go (#1744) 2016-06-29 17:49:09 -07:00
Aakash Muttineni 17468c8863 Vendor update (#1739) 2016-06-14 22:44:33 +05:30
Aakash Muttineni f9efb67bc2 Minio-go vendor update (#1734) 2016-05-29 23:44:16 -07:00
Krishnan Parthasarathi e5bc26c75a Removed setting of http.Client Timeout for mc (#1720)
* Removed setting of http.Client Timeout for mc

Fixes #1719

* Moved mcDefaultTransport closer to use

* Set ResponseHeaderTimeout to 3 secs

* Vendored in changes from github.com/minio/minio-go

* Fixed CI build errors due to API changes, post vendoring

* Fixed unit tests w.r.t the change from insecure to secure in minio.NewV{2,4} API
2016-05-20 00:35:49 -07:00
Harshavardhana 959fa74ca5 profile: Add MC_PROFILER env supporting cpu, mem, block profiling. (#1714)
All profiled outputs are written inside `~/.mc/profile`
2016-05-10 19:10:59 -07:00
Harshavardhana 382aa26859 vendorize: New changes in minio-go. (#1699)
- Fixes listing bug with done channel.
- Fixes retry go-routine leak.
- Adds more to the list of network errors to retry safely.
2016-04-25 01:20:15 -07:00
Harshavardhana c517833663 vendor: Vendorize minio-go
- Bucket policy fixes by Karthik Rao.
- China region fixes.
- Fixes a concurrent crash in Signature V2 code by Anis Elleuch.
2016-04-18 23:15:56 -07:00
karthic rao 3d04e56228 vendor: vendor updates for minio-go 2016-04-07 10:08:09 -07:00
Harshavardhana 69fbb9a87d mc: Fix Golang version handling.
Migrate to a better go-version package to handle
version numbers.  Default to 'go1.6' as minimum.
2016-04-02 02:51:27 -07:00
Krishna Srinivas 82d87111fc vendor: vendor update minio-go. Increase http client timeout to 8 minutes. 2016-03-30 14:07:24 +05:30
Harshavardhana 9617f22fcd pipe: Avoid double copy of buffers in minio-go
Disallows multiple copies being referenced internally leads
to OOM conditions on certain low memory devices and systems.

Fixes #1641
2016-03-27 20:08:57 -07:00
Harshavardhana f4e8352f5a access: Access policy command implemented.
This patch implements as decided..

To set a bucket policy.
```
mc access readonly s3/<bucket>
mc access readwrite s3/<bucket>
mc access writeonly s3/<bucket>
mc access none s3/<bucket>
```

To get a bucket policy.
```
mc access s3/<bucket>
```
2016-03-27 19:49:54 -07:00
Harshavardhana 49851c8795 vendor: Vendorize with new changes to minio-go 2016-03-13 03:22:39 -07:00
Karthic Rao 09495582c4 Adding Get() method to check on currentValue instead of totalFileSize
Adding vendor changes from minio-go and pb, aslo adding minio-go/retry.go changes to solve the race condition
2016-03-11 07:06:24 +05:30
Harshavardhana ea8f5c0f33 windows: Add progress bar windows fixes. 2016-02-19 15:40:38 -08:00
Harshavardhana fe5b2f97e3 fs/s3: move the code for fs and s3 out to the top-level.
Now the interface moves to the top level - fixes #1604
2016-02-16 11:27:42 -08:00
Super-User 5219fd59e8 porting: mc now properly works on solaris.
Fixes #1603
2016-02-15 15:03:40 -08:00
Harshavardhana 4ef3dcffc4 build: Now builds for all platforms and builds into 'release/experimental' directory.
Two Makefile options are

- make release
- make experimental

Currently supported OS and arch -

- linux/386
- linux/amd64
- linux/arm
- windows/386
- windows/amd64
- darwin/amd64
2016-02-09 14:18:35 -08:00
Harshavardhana f63de3cc30 mc: update to new changes in minio-go. 2016-02-07 18:03:32 -08:00
Harshavardhana 708f1e17f4 mc: Remove contentdb and use golang pkg/mime instead.
This is also because golang package sets proper 'charset's
for contentTypes. Also there is no reason for 'mc' to have
its own mimedb.
2016-02-06 10:43:57 -08:00
Harshavardhana 1dea194699 minio-go: Vendorize with new changes. 2016-02-05 23:10:09 -08:00
Harshavardhana 0236dcf780 rm: List wouldn't progress for files with special characters.
This patch addresses this problem - fixes #1591
2016-02-02 01:28:04 -08:00
Harshavardhana fc668edadf urlAlias: Handle forward slashes on windows.
On windows
```
> mc ls s3/ --> Fails
```

Since most of our examples talk about '/', we should handle
this cleanly for windows.
2016-01-27 14:34:12 -08:00
Harshavardhana 3a3dbb2722 minio-go: vendorize to new libs.
Fixes - #1579
2016-01-25 16:39:24 -08:00
Harshavardhana 9a40a67410 mc: Vendorize to new changes.
- Fix 0byte file uploads to be not uploaded as multipart.
- Fix bucket requests to have a '/' at the end
  for path style - fixes #1579
- Handle progress bar, if pb.Total is '0'.
2016-01-25 01:00:47 -08:00
Harshavardhana a769ce6439 mc: Vendorize to new API changes.
This vendorization uses the new set of API changes which
we are brought in.

With this new change Bucket regions are handled transparently
without any region lookup or local map. This makes overall code
seamless and easy to use.

Fixes - #1541 (cp corruption while uploading large files to s3)
Fixes - #1542 (cp checkCopySyntax failed)
Fixes - #1537 (regions will be handled seamelessly now for all buckets)
Fixes - #1538 (fixes access control policy for google cloud storage)
Fixes - #1547 (session resume completes without copying all the files)
Fixes - #1559 (poor network connectivity, causes timing out)
2016-01-23 23:53:27 -08:00
Harshavardhana 727538fa8c pkg/user: Bring user package from server and use it here in place of userCurrent. 2015-12-08 20:35:01 -08:00
Harshavardhana 36e7e42637 contentType: use contentDB package from server. 2015-12-04 16:28:26 -08:00
Harshavardhana 759fb1f079 signature-presign: new minio-go vendorized fixes #1515 2015-12-02 09:41:25 -08:00
Harshavardhana dbdcdff874 windows: internal multiparts should use platform specific tempfile location 2015-11-30 13:02:53 -08:00
Harshavardhana 3b7d63bbf3 region: Resolve region properly, if fails return the error.
Fixes #1503
2015-11-30 12:25:45 -08:00
Harshavardhana 4485529911 putTarget: Reintroduce size this time pipe can upload upto 5TB 2015-11-28 22:17:22 -08:00
Harshavardhana 1badfc8a04 :mc: resumable downloads and support incomplete files on file system. 2015-11-28 18:00:53 -08:00
Harshavardhana 5a30dadbe3 region: minio server and minio-go now honor 'us-east-1' as default region 2015-11-23 14:09:12 -08:00
Harshavardhana 7e5f4776ca minio/minio-go: re-vendorize with new changes
Fixes #1470
2015-11-21 19:22:40 -08:00
Harshavardhana 3c8afb2877 minio-go: Turn off calculating size for incomplete uploads.
Calculating sizes for large multipart uploads can get
really slower - disable it for now.
2015-11-18 20:46:42 -08:00
Harshavardhana 2349ebda6b cli: Remove the errant newline upon error printing.
Fixes #1354
2015-11-18 20:10:39 -08:00
Harshavardhana fa497d3811 quick: Sync() not turned of by default 2015-11-17 23:42:07 -08:00
Krishna Srinivas b745676a24 quick users atomic package to Save() #1390 2015-11-17 16:33:12 -08:00
Harshavardhana a218b3d2bc help: Print help flags properly 2015-11-16 16:02:13 -08:00
Harshavardhana 2320487dcb minio-go/vendor: Add proper return on 301 for all apis. 2015-11-16 12:31:45 -08:00
Harshavardhana 3fb6d7f1bd vendor/minio-go: Add proper error message for 301 Temporary redirect 2015-11-16 11:10:58 -08:00
Harshavardhana 7831917901 help: Re-write help style now each command has --help 2015-11-16 02:21:44 -08:00
Harshavardhana d9ecccaef2 cp/mirror: Now putObject does single Put for 0byte sized files
Fixes #1313
2015-11-14 23:29:09 -08:00
Krishna Srinivas 2ea16262e0 Fix to use single connection to the server 2015-11-13 19:55:26 -08:00
Harshavardhana 75f27fa74c url: simplify url handling in ls, cp, mirror 2015-11-13 19:38:15 -08:00
Harshavardhana d03681df74 vendor: setBucketRegion simplified and make it part of private config funtion 2015-11-13 02:10:52 -08:00
Harshavardhana 22051bb8af s3/gcs: now all combinations and permutations work for URLs with buckets in different regions.
- <bucket>.s3.amazonaws.com with <bucket> in us-west-2 re-writes
   the URL to s3-us-west-2.amazonaws.com.
 - <bucket>.s3-us-west-2.amazonaws.com doesn't need and translation,
   call goes directly to s3-us-west-2.amazonaws.com
2015-11-12 20:29:20 -08:00
Krishna Srinivas 4f9589ef79 vendor update for minio-go 2015-11-12 16:04:32 -08:00
Harshavardhana eb10e0e089 share: Fix share command for google cloud
Fixes #1282
2015-11-12 12:05:36 -08:00