Harshavardhana
2d6a960f94
fix avoid multiple HEAD operations ( #3173 )
...
- Get() already has the metadata to preserve
- Stat() doesn't need to be sent multiple times
do preserve attributes, use it once.
2020-04-17 01:01:34 -07:00
Harshavardhana
4036009dc2
fix optimize content-type detection for only FS ( #3172 )
...
Also avoid a secondary Stat() operation during
GetObject(), when preserving the metadata
Fixes #3170
2020-04-16 19:03:02 -07:00
BigUstad
ab2500e2ef
match S3 within URL in full appropriately ( #3163 )
...
Fixes #3140
2020-04-16 18:25:40 -07:00
Harshavardhana
5c4add2000
optimize client admin transport ( #3168 )
2020-04-16 18:24:11 -07:00
Anis Elleuch
59187f2ef7
s3: Use head API before listing in client.Stat() ( #3156 )
...
Stat() is supposed to return valid information for existing
objects and existing prefixes as well.
The current mechanism issues a listing request and searches
for the object or prefix in the returned list, but this could take
time if there are a lot of entries under a parent prefix.
The new commit changes the internal behavior but not the
functional output. It issues a HEAD request first, if there
is no object then assumes it is a prefix and does listing
in order to find it.
2020-04-16 16:23:37 -07:00
Harshavardhana
91ca683b03
improve signature probe avoid repeated code ( #3169 )
2020-04-16 11:45:28 -07:00
Daniel Valdivia
42023a1298
allow mc event remove to remove individual events ( #3145 )
2020-04-14 18:44:29 -07:00
Harshavardhana
4388f6d69b
trim alias from obd filename avoid local write failure ( #3164 )
2020-04-14 17:37:31 -07:00
Sidhartha Mani
9e4e435c56
make admin obd deadline configurable ( #3154 )
2020-04-14 13:12:06 -07:00
Bala FA
dfa1e42b25
add mc mv command ( #3134 )
...
Fixes #3077
2020-04-14 11:59:16 -07:00
Harshavardhana
cb9e103714
upgrade to latest pkg/madmin package ( #3151 )
2020-04-10 08:57:45 -07:00
Nitish Tiwari
18f81e5458
cp: Add object lock related flags ( #3127 )
...
- Adds --retention-mode,--retention-duration &
--legal-hold flags in cp command
- Adds --bypass flag in rm command
2020-04-07 19:51:20 -07:00
Harshavardhana
8cae137525
fix all the build errors
2020-04-03 22:22:20 -07:00
Bala FA
3b31837927
add disableMultipart option to Copy() ( #3141 )
2020-04-03 20:14:05 -07:00
Daniel Valdivia
4d36c1f8b8
Make NewS3Config and NewAdminFactory Public ( #3138 )
2020-04-02 19:41:31 -07:00
César Nieto
a9e875b503
set S3Client struct as public ( #3139 )
2020-04-02 19:33:44 -07:00
Bala FA
51ef254a41
add --disable-multipart flag in cp ( #3135 )
2020-04-02 08:21:33 -07:00
Daniel Valdivia
0ea8d1d479
Make BuildS3Config public ( #3132 )
2020-04-01 07:41:53 -07:00
Sidhartha Mani
eeeca2332d
Onboard Diagnostics ( #3114 )
...
Also colorize JSON output in all admin commands
2020-04-01 01:35:46 -07:00
BigUstad
080414009e
mc watch windows URL/absolute path event path ( #3133 )
2020-03-31 09:50:29 -07:00
poornas
25de1da81b
Add legalhold command ( #3095 )
2020-03-31 09:18:26 -07:00
kannappanr
1fb87a492e
cleanup tag command ( #3126 )
2020-03-23 09:23:52 -07:00
BigUstad
71eb7f6689
Add tag command ( #3117 )
2020-03-22 20:59:49 -07:00
Anis Elleuch
64a78e7811
Add global context and adapt context change in admin API ( #3125 )
...
This commit adds a new global context, monitors os signals
and cancels the global context in such cases to exit
on going process gracefully.
It will also update minio-go and adapts the code with
the new context changes in the admin API.
2020-03-21 13:42:41 -07:00
Harshavardhana
b010699112
cleanup legacy metadata handling ( #3118 )
2020-03-19 17:00:20 -07:00
poornas
3230acae32
mc retention: add --recursive and --bypass flags. ( #3100 )
...
--bypass flag allows overriding governance if user
has override permissions
2020-03-19 12:24:09 -07:00
ebozduman
91da0da183
fix for incorrect mtime handling ( #3121 )
2020-03-18 11:33:53 -07:00
Anis Elleuch
fc04dc6463
info: Add missing new lines in the output ( #3119 )
2020-03-17 15:28:21 -07:00
poornas
fd43df09a1
mc cp: Fix prefix handling in TypeC ( #3115 )
...
for copy from filesystem to objectstorage.
Avoid prefixing dirname to file on target side
when doing a `mc cp /tmp/dir myminio/bucket --r`
to make `mc mirror` and `mc cp` behavior consistent
2020-03-15 17:47:35 -07:00
Anis Elleuch
b621ae58f5
heal: Show scheduled next healing ( #3111 )
...
mc admin heal alias command will show the next healing time.
Also, show 'Never completed' when the server returns zero last healing activity
2020-03-14 22:30:27 -07:00
Jeffrey Clark
bcbbfa7352
Secret key prompt ( #3083 )
2020-03-14 00:03:44 -07:00
Anis Elleuch
5b5d65a142
info: Fix showing offline nodes in the pretty output ( #3112 )
...
Also do some simplification in the code.
2020-03-13 18:16:17 -07:00
Klaus Post
1a27f7f51d
mc cp -continue: Fix escape/colorization of JSON ( #3116 )
2020-03-13 13:21:39 -07:00
poornas
1092f6932f
fix: Make sure Ctrl-C cancels mc cp right away ( #3113 )
2020-03-11 21:42:38 -07:00
Anis Elleuch
a7dd97f140
Add support of threads & goroutines profiling type ( #3108 )
2020-03-06 12:12:38 -08:00
kannappanr
a0d9e26dc7
Support arm32, 386 compilation: ( #3103 )
2020-03-05 09:27:20 -08:00
Harshavardhana
24e7caa146
Use listObjectsV1 for GCS S3 implementation ( #3101 )
...
Fixes #3073
2020-03-03 23:13:10 +03:00
poornas
b65d6797cd
retention - cleanup unused code ( #3094 )
2020-02-26 10:56:49 +05:30
Harshavardhana
67e90b8fcb
fix handling of directories in Stat ( #3092 )
...
Fixes #3089
Fixes #3091
2020-02-25 18:08:20 +05:30
ebozduman
3862184a8a
honor prefix for object and directory names in 'rm -r' ( #3012 )
2020-02-19 10:42:41 +05:30
Harshavardhana
5d9a04bac6
allow mirror to copy zero byte file ( #3084 )
...
this PR also cleans up code and avoids
extra calls for source target
2020-02-18 11:09:42 -08:00
poornas
e03d8d99a3
Fix crash in mc admin console ( #3079 )
...
Fixes : #3078
2020-02-14 10:54:22 -08:00
Harshavardhana
f7c366ae3d
add debug support for 'config host add' ( #3076 )
2020-02-13 21:36:10 +05:30
Andreas Auernhammer
551a124804
add the mc admin kms subcommands ( #2882 )
...
This commit adds the first set of KMS admin
commands.
For new there is only the
`mc admin kms key status <endpoint> [key-ID]` command
that can be used to fetch status information for a
KMS master key. Listing and rotation commands are
planed.
2020-02-05 10:29:17 -08:00
Reinhard Koehn
609274326b
Ensure 64bit alignment on 32bit builds for atomics ( #3065 )
...
Keep elements that are used with atomic.* functions as first element
of struct because it guarantees 64bit alignment on 32 bit machines.
atomic.* functions crash if operand is not aligned at 64bit.
See https://github.com/golang/go/issues/599
2020-02-04 13:17:27 -08:00
ebozduman
ac9b942397
check for bucket exists in 'admin heal' ( #3059 )
2020-02-01 10:55:13 -08:00
Harshavardhana
b70a79e39b
fix: handle symlinks by reading/following as needed ( #3053 )
...
Avoid using filepath.EvalSymlinks and let the caller
fail appropriately for symlinks.
Fixes #3011
2020-01-23 02:33:58 -08:00
Harshavardhana
28aae43c8c
fix: best effort save permissions always ( #3050 )
2020-01-17 14:02:12 -08:00
Harshavardhana
0596acea95
admin/console: Fix a crash in console string generation ( #3049 )
2020-01-17 05:51:01 -08:00
Harshavardhana
8694ddb3ee
Update pkg/madmin to support multiple profilers ( #3048 )
2020-01-16 12:31:49 -08:00