Commit Graph
3082 Commits
Author SHA1 Message Date
Harshavardhana 9cf76b1233 api: StatObject if listing returned missing file. (#1945) 2017-01-04 18:36:09 -08:00
Anis Elleuch 66a65aab02 Add policy links command (#1943) 2017-01-04 08:24:58 -08:00
Harshavardhana 5581915bc0 session: Validate session config header version. (#1940) 2017-01-01 13:30:10 -08:00
Harshavardhana ee7f4e1d52 Simplify loading config and use config loader with version check. (#1939) 2017-01-01 13:02:27 -08:00
Harshavardhana 8c65985cd0 rm: Allow delete of objects with / at the end. (#1937)
Fixes #1931
2017-01-01 10:26:00 -08:00
Harshavardhana 23a58eb5da mc: Introduce new Dockerfile for mc. (#1938)
This is to build `mc` at hub.docker.com

Fixes #1917
2016-12-31 20:49:05 -08:00
Anis Elleuch 9193eef1c9 clientfs: Fix policy mode calc. in GetAccess() (#1936)
Masking target directory file mode to be able to perform correct comparaison with policy standard file permissions in FS mode
2016-12-23 06:54:45 -08:00
Anis Elleuch e90e9bc352 admin: Introduce the new service command (#1922)
Introducing Admin Service cmd to mc
2016-12-22 13:37:55 -08:00
Harshavardhana a1d860f818 Add Solaris/Illumos source installation. 2016-12-22 13:24:25 -08:00
Harshavardhana d733d68b0c enable static build releases with CGO_ENABLED=0 (#1935)
Also removing darwin build, since we do brew install.

Removing solaris since it doesn't build anymore.

Fixes #1933
2016-12-22 12:54:26 -08:00
Aditya Manthramurthy 4a96d65408 gofmt fixes (#1930) 2016-12-16 08:29:00 -08:00
Dee Koder 1e16ed5e55 404fix: Update docs.minio.io/docs/minio to docs.minio.io/minio-quickstart-guide (#1929) 2016-12-15 12:39:41 -08:00
Harshavardhana 782352ae56 mirror/cp/pipe: Preserve metadata while copying s3 to s3. (#1927)
Fixes #1923
2016-12-14 20:06:52 -08:00
koolhead17 d97ba4eb0d docs: Removed $ from code block to make code copy easier. (#1928) 2016-12-14 12:37:58 -08:00
Harshavardhana 282246fff2 mirror: --remove should properly remove files on target. (#1926)
This bug happened after rm-main was refactored.

Fixes https://github.com/minio/minio/issues/3432
2016-12-12 14:31:46 -08:00
Anis Elleuch b3059164aa cli: Fix --version output (#1924) 2016-12-12 10:21:52 -08:00
Harshavardhana 64166319ee cp/diff/mirror: Cleanup code and deprecate unnecessary flags. (#1914)
This fix also fixes an apparent crash found in diff.

```
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x4bdc07]

goroutine 84 [running]:
panic(0x810ea0, 0xc4200120e0)
        /home/builder/.gimme/versions/go1.7.3.linux.amd64/src/runtime/panic.go:500 +0x1a1
github.com/minio/mc/cmd.objectDifference.func1(0xc4200880a8, 0xc42042ee56, 0xc420315ec0, 0xc4200880b0, 0xc42042ee57, 0xc420315f20, 0xc42042ee54, 0xc42042ee55, 0xc420315501, 0xc4200880a0, ...)
        /home/builder/mygo/src/github.com/minio/mc/cmd/difference.go:109 +0x197
created by github.com/minio/mc/cmd.objectDifference
        /home/builder/mygo/src/github.com/minio/mc/cmd/difference.go:180 +0x2f5
```
RELEASE.2016-12-09T18-23-19Z
2016-12-06 01:41:22 -08:00
Harshavardhana b8e732e526 events: Fix the message printed by events{add,remove} (#1911)
Fixes #1900
RELEASE.2016-12-05T22-51-51Z
2016-12-05 14:14:01 -08:00
Harshavardhana f0d926ebba fs: Enhanced ignore list to do glob match. (#1910)
Fixes #1902
2016-12-05 14:07:18 -08:00
Harshavardhana 1e48d10617 mirror: Avoid flushing session to disk on each i/o operation. (#1909)
The problem was for each read from statusCh we were writing
to session file again and also syncing to disk. This adds
severe performance problems.

Fixes #1908
2016-12-05 13:53:09 -08:00
Anis Elleuch ce9d706716 cat: return err in case s3 object short read (#1907)
cat inspects the size of the downloaded s3 object when specified to
detect a possible short read
2016-12-04 13:59:07 -08:00
Anis Elleuch 81abbca12f Vendorize new minio-go version (#1905) 2016-12-02 16:36:34 -08:00
Anis Elleuch 2cd67b296e tls: load custom public certificates from CAs dir (#1901)
When a user needs to setup his own TLS configuration, he can put his
custom authority certificates in ~/.mc/certs/CAs/. These certificates will
be automatically loaded at startup and will be set to all HTTPS connections
2016-12-02 11:16:01 -08:00
Anis Elleuch 7976d6d805 Continue listing incomplete uploads when we receive an error associated to a specific object (#1899) 2016-11-27 10:33:35 -08:00
Harshavardhana df395786bd mc: Consistent exit codes across all commands. (#1895)
Also brings in much needed CLI changes from
upstream and backporting our custom changes on
top of those changes.

Fixes #1880
2016-11-27 12:35:59 +05:30
Harshavardhana 2412aae68f cp/mirror: Use proper paths for windows during copyObject. (#1897)
Fixes #1857
2016-11-27 12:26:02 +05:30
Harshavardhana 0a42e2969a Relax access/secret key requirements as minio server. (#1894)
Also add tests in the process.
2016-11-24 12:10:28 -08:00
Harshavardhana b51e6b0485 Fix downloading files with exact ranges requested in client FS. (#1892)
This is due to the fact that ReadAt() will not send io.EOF
when reading past the offset, server instead returns
Range error. Handle the error by only reading until the
requested size.
2016-11-21 02:53:24 -08:00
Harshavardhana e1ed7c65e7 Fix a debug message in session close. 2016-11-20 18:41:12 -08:00
Harshavardhana cf89d74561 Vendorize new minio-go code. (#1891)
This fixes #1889.

```sh
mc mirror -w
```

Now runs continous even when the source is not available.
Reconnects indefinitely in a binomially increasing fashion
and also allows jitter so that the retry has a nice
distribution as well.

This allows for 'mc mirror -w' to run continously without
further monitoring.
2016-11-20 16:31:53 -08:00
Harshavardhana 38aec4d875 mirror and cp should print size in --json mode. (#1890)
```sh
mc cp -r --json /usr/bin /tmp | jq .
...
...
{
  "status": "success",
  "source": "/usr/bin/gcm-viewer",
  "target": "/tmp/bin/gcm-viewer",
  "size": 87128,
  "totalCount": 2602,
  "totalSize": 677422730
}
```

This allows scripts to build progress around this data.
2016-11-20 14:46:24 -08:00
Royce Remer 23f0a27acc we removed GOINSTALL.md some time ago, point at new minio docs withe same instructions (#1888) 2016-11-18 18:37:38 -08:00
Royce Remer 447cb7a726 fix regex comparator for GOROOT (#1887) 2016-11-18 18:37:16 -08:00
Harshavardhana fa5a339434 Move to latest x/sys/unix for arm64 fixes. (#1882)
Related to fixes here golang/go#15393
2016-11-18 18:04:09 -08:00
Dee Koder 7a295dd5fa bugfix: Remove sh tag for mc list of commands (#1881) 2016-11-15 15:42:08 -08:00
Anis Elleuch 2895b0acca Put() in client fs avoids reading from input reader when data is zero lengthy (#1879) 2016-11-08 16:59:23 -08:00
Anis Elleuch ab9cdd7fce Fix policy cmd syntax checking (#1878) 2016-11-08 13:32:27 -08:00
Anis Elleuch cc6fa9acbf Rename 'both' policy to 'public' (#1877) 2016-11-08 10:55:55 -08:00
Justin Clift e14dcccd37 Adjust a help text line to match its example description (#1869) 2016-11-03 11:51:11 +05:30
Anis Elleuch 27526399f5 Vendorize new minio-go version as it brings new fixes (#1867) 2016-11-02 02:51:35 -07:00
Harshavardhana 8009e8108b Validating signature type should be case insensitive. (#1866) 2016-10-28 10:50:43 -07:00
Anis Elleuch b45d48f4f1 Update minio-go library (#1864) 2016-10-26 16:39:23 -07:00
Anis Elleuch b9f1950320 Use correct share upload url (#1863) 2016-10-25 13:23:22 -07:00
Bala FA 6de2b4559e Refactor rm command. (#1855)
This patch makes rm command to use minio-go.RemoveObjects() to removeobjects recursively.
2016-10-17 20:24:09 -07:00
Bala FA 0661f537cf update help messages of all commands. (#1856) 2016-10-17 20:18:55 -07:00
Anis Elleuch b737b2e7fc Better error message when trying to monitor a non minio s3 provider (#1854) 2016-10-13 09:16:46 -07:00
Anis Elleuch d9b3f276b8 Fix remote path calcuation when continuously mirroring fs dir to any target (#1853) 2016-10-10 13:03:40 -07:00
Anis Elleuch 53ab0168e4 Correct behavior of listing and removing empty directories (#1851)
* Listing empty directy returns empty entries

* Remove empty directories in rm cmd
2016-10-08 04:16:02 -07:00
koolhead17 01f0c35651 docs: Added newly introduced sub-commands, flags with example. (#1850) 2016-10-07 08:45:17 -07:00
Bala FA 75d55783c0 ls: fix incomplete listing for specific prefix (#1849)
Previously it was failing like below.

```
$ mc ls --incomplete myminio/mybucket
[2016-09-16 09:48:57 PDT] 576MiB 1.iso

$ mc ls --incomplete myminio/mybucket/1.iso
mc: <ERROR> Unable to initialize target ‘myminio/mybucket/1.iso’. Object key is missing, object key cannot be empty
```

This patch fixes this issue.
RELEASE.2016-10-07T01-56-22Z
2016-10-04 17:19:05 -07:00