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
koolhead17
f03aaef72f
docs: modified the guide to add Minio reference instead AWS S3. ( #1847 )
2016-10-03 00:10:14 -07:00
Anis Elleuch
f54e426bb1
Do not return S3 empty directories in recursive listing ( #1846 )
2016-10-01 21:32:22 -07:00
koolhead17
5b94ddc703
docs: Added note on mc mirror -w that it is minio only command. ( #1842 )
2016-09-30 09:13:15 -07:00
Harshavardhana
477461325d
update: Update link is printed automatically for RELEASE versions. ( #1840 )
...
This link is printed only for RELEASE versions when user doesn't
provide any sub commands.
Fixes #1839
2016-09-28 10:50:06 -07:00
Bala FA
3094af8a5e
rm: add timebased delete and object list from stdin ( #1837 )
...
* Add multi-delete support by taking object list from stdin
* Add support to `rm` to remove objects older than given time
* Add --prefix flag to differenciate prefix and target names.
Fixes #1827 #1828
2016-09-28 10:13:11 -07:00
Harshavardhana
add7dcc763
vendor: Update minio-go deps with latest changes ( #1836 )
...
- PutObject() parallel uploads
- ListenBucketNotification API change.
- Other misc fixes.
2016-09-27 16:10:24 -07:00
Anis Elleuch
df7acbcad4
Upgrade go version requirement to 1.7.1 ( #1832 )
2016-09-25 12:13:35 -07:00
Anis Elleuch
15b91126d5
More meaningful error messages with unsupported filesystem operations (share and policy) ( #1833 )
2016-09-25 10:20:56 -07:00
Anis Elleuch
2b24a7b520
Avoid seeking os.Stdin in client-fs Put() ( #1834 )
2016-09-25 10:19:13 -07:00
koolhead17
b404c7583b
docs: added newly introduced --insecure global option. ( #1823 )
2016-09-08 13:42:28 -07:00
Harshavardhana
6ce337ca38
Bring new fixes from minio-go related to PutObject and GetObject ( #1822 )
2016-09-09 02:11:53 +05:30
Anis Elleuch
d0caa630af
isTargetURLDir() returns true for aliased URLs with empty object names ( #1805 )
2016-09-05 20:38:40 -07:00
Anis Elleuch
8a48d604a8
Add policy list command ( #1811 )
2016-09-03 05:47:37 -07:00
Anis Elleuch
80b0aa3842
Fix inefficient assignments reported by ineffassign ( #1817 )
2016-09-02 12:31:52 -07:00
Harshavardhana
c6a383590d
mc: Do not print accounting with '--json' ( #1815 )
2016-09-01 20:13:49 -07:00
Anis Elleuch
fd34958ffa
Add --insecure flag to skip certificate validation ( #1814 )
2016-09-01 18:36:00 -07:00