Harshavardhana
afcfe758f3
Fix joinPath function to handle directories properly ( #2459 )
2018-06-06 11:29:05 +05:30
Anis Elleuch
c0b89a7aec
Add support of empty directories in ls/rm/find commands ( #2452 )
2018-06-04 17:20:07 -07:00
Harshavardhana
2d4346bfe1
Add 'mc admin' complete guide ( #2456 )
...
Fixes #2428
2018-06-01 09:16:01 +05:30
Anis Elleuch
d566905d7a
Properly shutdown parallel copy in cp command ( #2448 )
2018-05-31 12:38:22 -07:00
Harshavardhana
961c4b5dae
Add total used support for mc admin info ( #2449 )
2018-05-23 17:44:50 -07:00
Praveen raj Mani
b41b98b04d
mc mirror watch fix in darwin ( #2445 )
...
The event.Path had few prefixes appended in it (only in darwin).
Instead of taking the trimmed directory path, It takes the full path, say '/private/...".
This disturbs the target URL. Which indeed inserts it as a whole '/private/{target_path}',
So trimming the prefixes in the event.path solved it.
Solves:#2443
2018-05-13 19:34:49 -07:00
Anis Elleuch
182ad295d8
Quit calculating difference for any listing error ( #2440 )
...
If we have any listing problem, we should stop comparing difference
between source & target lists because it is already so hard to know
what mc should do next. So, let's inform users and let them deal
with the problem.
2018-04-26 11:21:10 -07:00
Harshavardhana
75e9691616
Support server side copy object with progress ( #2438 )
...
Support server side copy object with progress
and also uses a more optimized version to perform
multipart server side copy operation.
2018-04-26 11:02:06 +05:30
Anis Elleuch
1ccf40d1e5
Properly stop parallel work in mirror/cp when the user clicks on Ctrl-C ( #2437 )
2018-04-25 11:55:07 -07:00
Harshavardhana
2dc48e9dd3
Simplified build system and move to go1.10.1 ( #2431 )
...
minio server simplified its build system, this
change borrows the same technique to `mc` as well.
This PR fixes build messages and overall behavior
of our builds on travis and appveyor.
2018-04-13 13:57:07 -07:00
Anis Elleuch
757fff7764
Simplify parallel manager implementation ( #2413 )
...
Each 5 seconds, calculate current bandwidth and add new workers as
bandwidth gets increased. Stop adding workers if it is not useful
for increasing bandwidth.
2018-04-06 18:46:35 -07:00
kannappanr
0fe4319e17
Fix display message when list and remove notifications are called ( #2424 )
2018-04-05 13:19:16 -07:00
poornas
18ddd3925b
Config: avoid adding default configs if entries present ( #2426 )
2018-04-03 13:09:32 -07:00
Anis Elleuch
45b32d3985
errors: Add missing ending dot in error & fatal messages ( #2418 )
2018-03-23 12:22:55 +05:30
Anis Elleuch
ae3c123a5c
Do not exit mirroring for cannot delete/overwrite errors ( #2416 )
...
mc used to show a warning messages during mirroring when it
detects a need to overwrite or remove a remote object but no
flag is specified. This commit efeaf2ee72
changed this behavior but this commit will restablish
the old behavior.
2018-03-22 13:37:32 -07:00
poornas
fe82b0381c
change encryption key parsing to allow spaces in sse-c key ( #2408 )
...
Also vendoring in minio-go updates
2018-03-14 02:47:14 -07:00
poornas
0ede95b65e
add encrypt option to cp, mirror,pipe,stat, cat and rm commands ( #2400 )
2018-03-08 17:18:41 +05:30
Nitish Tiwari
ea580b0b65
Add storage-class support ( #2403 )
...
This PR adds storage-class support for mc cp and mirror command.
Storage class values are passed via the -storage-class or
--sc flag.
Fixes #1859
2018-03-03 10:28:53 -08:00
kannappanr
b1dd99c94d
Detect duplicate config entry in mc add event ( #2402 )
...
Fixes #2324
2018-02-26 14:28:33 -08:00
kannappanr
57bf0c0e79
Fix moving standard metadata as user defined header in s3Client's PUT method ( #2401 )
...
Standard headers like Content-Disposition, Content-Encoding,
Cache-Control, Content-Language were made part of user metadata
causing it to fail while mirroring, if the source has these headers
set.
Fixes #2358
2018-02-24 15:12:01 -08:00
ebozduman
efeaf2ee72
Stops removing target bucket content when url.Error ( #2377 )
2018-02-21 12:22:09 +05:30
Harshavardhana
97c7984bca
Large bucket support admin API Changes ( #2372 )
2018-02-15 18:35:05 -08:00
Aditya Manthramurthy
335a53ad29
Fix flickering in heal dashboard UI ( #2391 )
2018-02-14 10:15:26 -08:00
Harshavardhana
d4981656d3
Remove response timeout for admin operations ( #2390 )
2018-02-13 15:40:46 -08:00
Harshavardhana
766e04d79d
fix crashes on 32bit systems use LoadUint32() instead ( #2389 )
2018-02-12 10:25:06 -08:00
poornas
65e22bee24
Add api as option for mc config host add command. ( #2381 )
2018-02-10 14:39:12 -08:00
ebozduman
3987f1405a
Revises 'mc diff' command help menu ( #2383 )
2018-02-08 16:29:50 +05:30
Krishnan Parthasarathi
e1056aa50d
Fix admin-info, admin-status json status field ( #2293 )
2018-02-05 10:09:12 -08:00
A. Elleuch
017dddef97
Add --newer-than & --older-than flags ( #2142 )
...
Use --newer-than & --older-than to select newer or older files
in copy, remove and mirroring operations.
2018-02-01 10:32:22 -08:00
Harshavardhana
55f06077e5
Fix heal admin API to honor json/quiet flags correctly ( #2370 )
...
Update the madmin updated package as well
Fixes #2369
Fixes #2368
Fixes #2367
2018-01-27 23:19:52 +05:30
A. Elleuch
99ee2a5042
Refactor {build,new}S3Config to remove a duplicate code ( #2329 )
2018-01-24 12:06:34 -08:00
Aditya Manthramurthy
793cda2ca0
New Admin API client-side implementation ( #2350 )
2018-01-23 12:32:58 -08:00
ebozduman
83bb797389
Adds stderr and returns exit status of the cmd executed ( #2361 )
...
Fixes #2351
2018-01-23 13:17:47 +05:30
Harshavardhana
8fbbd0ee83
Fix and refactor MC_HOSTS_ env handling code ( #2365 )
...
Existing MC_HOSTS_<alias> was incorrectly placed
inside s3Config initialization code path which
leads to a situation where we loose the URL path
information.
Fixes #2364
2018-01-19 18:29:28 -08:00
Harshavardhana
3b4626ea15
Bump max parallel workers to 32 ( #2360 )
2018-01-18 19:46:31 -08:00
Aditya Manthramurthy
d9663e5d96
Improve lock error message ( #2353 )
2018-01-16 21:25:03 +05:30
poornas
5d703df69d
vendorize minio-go to version 4.0.6 ( #2357 )
2018-01-16 12:43:49 +05:30
Aditya Manthramurthy
5f2f82b5f7
Update heal command - remove upload healing ( #2355 )
...
This PR is to keep mc in sync with changes introduced in
https://github.com/minio/minio/pull/5390 to remove upload healing
functionality.
2018-01-12 07:50:04 -08:00
poornas
5dee56d5d0
fix for prefix based rm ( #2354 )
...
mc rm --r with prefix not terminated by / doesn't get deleted.
example: mc rm --r --force --older-than=10 play/test/prefix
Fixes : #2341
2018-01-12 09:23:03 +05:30
poornas
722ee94165
fix missing metadata in stat cmd ( #2348 )
...
mc stat without --r is missing metadata for stat on objectname
2018-01-10 11:07:21 -08:00
poornas
b64c8a3aa9
Copy metadata during mirror and cp peration ( #2347 )
...
Validate metadata key/values to filter out custom xattr
set on fs to prevent invalid http headers being sent in http request
by minio-go
2018-01-10 11:03:42 -08:00
Harshavardhana
13259eea21
mirror with --watch should copy and exit for s3 endpoints ( #2345 )
...
Current code wouldn't exit unless we press CTRL+C
even if the endpoints do not support --watch, this PR
fixes this behavior.
2018-01-08 10:56:56 -08:00
poornas
9da492975c
correct stat behavior and message ( #2344 )
...
fix empty stat listing when bucket has only a single object and
cleanup dead code.
2018-01-05 14:18:35 -08:00
Landry Breuil
96dc4f920d
Use client-fs_other on OpenBSD ( #2342 )
2017-12-29 14:14:24 +05:30
poornas
2d221ba8da
stat: fix output to show bucket in stat listing ( #2340 )
...
Show stat of all buckets at site level, and mimic
mc ls behavior in stat output.
2017-12-25 16:19:24 +05:30
Kaan Kabalak
eeb18ff75c
Correct typo in mc cat ( #2336 )
...
Fixes #2334
2017-12-15 21:45:24 +05:30
A. Elleuch
4cb6e35342
fix: Consider insecure flag in host add cmd ( #2331 )
...
--insecure wasn't have an effect when invoked in a `mc host add` cmd. This
PR fixes the behavior.
2017-12-11 15:14:56 -08:00
A. Elleuch
5ddf9728f8
Parallelize upload/remove in cp/mirror commands ( #2289 )
...
This PR removes --parallel flag and implements a dynamic way of adding
threads to accelerate mirror/cp command.
After the calculation of objects that need to be copied/removed, mc
sends tasks (upload/remove) to a parallel manager which monitors the
progress of tasks and decide to allocate more threads to it to
accelerate the overall work.
This is very useful when we copy/mirror many relatively small files.
2017-12-07 16:20:34 -08:00
poornas
275db95170
mc: Remove MC_MULTIPART_THREADS env variable ( #2326 )
...
Remove this var as PR#2289 will manage threads automatically based on
workload to speed up mc cp/mirror operations.
2017-12-06 09:30:20 -08:00
poornas
399187c4fb
ui: consistenly use "flag" instead of "option" in error messages ( #2325 )
2017-12-06 16:00:10 +05:30