Commit Graph
149 Commits
Author SHA1 Message Date
Anis Elleuch 372e905dad s3: Enforce virtual host style with China endpoint (#2153) 2017-05-11 09:19:12 -07:00
Harshavardhana f0ccc91890 fs: Allow copying to special files if possible. (#2146)
Fixes #2145
2017-05-03 11:21:02 -07:00
Anis Elleuch e54962e17f mb: Add -p flag to ignore existing bucket/dir (#2143)
If a remote directory/bucket exists, -p will still make mb cmd
happy if the target already exists.
2017-04-28 13:13:44 -07:00
Anis Elleuch 61e511cc3e fs watch: Use a dynamically sized channel (#2109)
Write a growing/shrinking channel to be able to absorb filesystem
notify events even when they come in large numbers.
2017-04-24 01:01:11 -07:00
Scott McClellan dd9e715599 Improved Error Msg For Bucket Names that Contain non-LOWERCASE chars (#2134) (#2135) 2017-04-22 22:15:27 +01:00
Anis Elleuch 9a881562b9 watch: Fix regression in watch local fs events (#2133) 2017-04-18 12:43:09 -07:00
Anis Elleuch 656f4f13d0 session: Close data session file when migrating (#2126)
Cleanup needed before removing the data file
2017-04-18 12:37:54 -07:00
Scott McClellan 9eb967cabf minor fixes to mc share download command (#2106)
improved error messages and issue with `--recursive` option. 

Fixes  #2099
2017-04-17 17:37:11 -07:00
Anis Elleuch 1bf5ac350f madmin: Update and adapt mc to new lib changes (#2131) 2017-04-16 20:42:55 -07:00
Anis Elleuch 313d0a358f cp: Set exit status to 1 for any error (#2127)
Non fatal errors during copy were not setting mc exit code with 1. This
commit fixes the behavior.
2017-04-15 00:20:13 -07:00
Peter Tribble 81f3ffa3af Fix solaris build (#2122) 2017-04-12 19:55:02 +02:00
Harshavardhana 9ea42680b0 watch/events: Add eventInfo struct for brevity. (#2120) 2017-04-11 09:08:04 -07:00
Harshavardhana 018bcbf629 cli/docs: Fix all cli docs to be consistent in terms of usage. (#2119)
ALIAS should be called as TARGET for all cli commands.
2017-04-11 12:06:02 +01:00
Harshavardhana b0968e29e8 watch/events: Support events on Get/Head operations as well. (#2116)
Fixes #2073
2017-04-10 11:50:52 -07:00
Anis Elleuch 5805a37d27 alias: Support underscore in alias name (#2113)
my_minio will be supported.
2017-04-05 14:53:57 -07:00
Anis Elleuch ad04a6fcc4 heal: Fix help text (#2111) 2017-04-05 13:58:54 -07:00
Krishnan Parthasarathi 7084a4361e Replace admin-heal-list with admin-heal --fake (#2101)
* Replace admin-heal-list with admin-heal --fake

* Improve admin-heal message for partial healing

* Vendorize pkg/madmin changes to include improved messaging for
  partial healing of objects/uploads.

* Modify message strings to include additional heal result information
  like number of disks where heal was successful.
2017-04-03 12:16:21 -07:00
Anis Elleuch a009299433 Revert "trace: Avoid httputil for less memory consumption (#2102)" (#2104)
This reverts commit eafa942a30.
2017-04-02 14:02:35 -07:00
Anis Elleuch eafa942a30 trace: Avoid httputil for less memory consumption (#2102)
Rewrite tracing without httputil since it consumes memory with
requests that have huge data.
2017-03-31 11:17:55 -07:00
Krishnan Parthasarathi 05468dfc8d Improve admin subcommand structure (#2098)
- Rename password subcommand to credentials
- Make clear-lock require --force flag
- Also, fix lock and heal mc-admin subcommand usage text.
2017-03-31 01:12:00 -07:00
Scott McClellan ff7ed00714 Fix for issue #2093 NAME: (#2100)
mc share list COMMAND - List previously shared objects and folders.

COMMAND:
   upload:   list previously shared access to uploads.
   download: list previously shared access to downloads.

USAGE:
   mc share list COMMAND

EXAMPLES:
   1. List previously shared downloads, that haven't expired yet.
       $ mc share list download
   2. List previously shared uploads, that haven't expired yet.
       $ mc share list upload help text misleading...
2017-03-30 18:39:35 -07:00
Anis Elleuch 3c0094a5fe diff: Change output UI (#2097)
Use >, < and ! marks to represent differences between
source and destination.
2017-03-29 15:51:29 -07:00
Anis Elleuch 923c0e24b1 share: Download shares the url of exact prefix (#2096)
When recursive flag is not specified, share download will only
generate download urls for the object which has the exact same
prefix.
2017-03-29 14:43:24 -07:00
Harshavardhana 3b57e86cd3 cli: Add bash and zsh autocomplete (#2095)
Fixes #2094
2017-03-28 16:57:13 -07:00
Harshavardhana 1a6987558a admin: Hide help sub-command from 'mc admin service' (#2091) 2017-03-26 10:30:35 +01:00
Anis Elleuch 250def49d5 madmin: Update package (#2084)
This brings up the following fix:
https://github.com/minio/minio/commit/181e002c56d6df84576038bab94079c3f1cdf718

Besides, this PR adds removes an uneeded line in admin cmd output.
2017-03-22 20:44:37 +01:00
Anis Elleuch b1e3d147f5 ls: Fix listing incomplete entries result (#2081)
This also factors common code used by several types
of listing routines, by creating a filtering channel
of results returned by these channels.

e.g. Filter out incomplete uploads or vice versa
2017-03-21 10:34:43 -07:00
Anis Elleuch 6c89b81d7b fs: Remove handling of specific windows symlinks (#2080)
Go has fixed the problem of dealing with junction files
(https://github.com/golang/go/issues/9190). This commit
simplifies the code of client fs
2017-03-20 15:51:28 -07:00
Anis Elleuch 7c7969ed55 admin heal: Support for uploads healing (#2076)
mc admin heal supports --incomplete flag to list and heal uploads.
2017-03-20 13:56:52 -07:00
Anis Elleuch 29920f8c9c fs stat(): Return dir stat with incomplete flag (#2078)
fs.Stat() returns an error when the path corresponds to
a directory and incomplete flag is enabled. This PR follows
S3 client behavior and fixes the behavior.
2017-03-20 11:06:43 -07:00
Bala FA 9ebb916902 Use words package from minio for DamerauLevenshteinDistance() (#2075) 2017-03-19 18:25:22 -07:00
Harshavardhana 4369359286 policy/links: Do not list prefixes in recursive mode. (#2070) 2017-03-14 19:41:26 +01:00
Harshavardhana 1dab94c625 Split config-host into remove, list, add commands (#2069)
This PR also adds convenient aliases for

 - remove as `rm`
 - list as `ls`
 - add as `a`

Also brings much needed cleanup.
2017-03-11 18:50:56 -08:00
Krishna Srinivas 53cb92038a Set secretKeyMaxLen = 100 to accomodate azure's account-key length. (#2054) 2017-03-08 16:53:04 -08:00
Harshavardhana 4425378b37 mc: Code cleanup after running gosimple tool (#2065) 2017-03-08 10:48:45 +01:00
Anis Elleuch 7fda78af40 info: Add sqs ARNs to the output (#2063) 2017-03-07 03:13:49 -08:00
Anis Elleuch 6e8320a6dc cp: Fix guessing if target url is a directory (#2062)
This fixes `mc cp /etc/issue/ /tmp/new_dir/` where
/tmp/new_dir/ doesn't exist yet.
2017-03-07 02:56:14 -08:00
Harshavardhana 99682ecbdb admin: HealObjectInfo can be nil skip it. (#2059)
Fixes #2058
2017-03-03 20:37:04 -08:00
Anis Elleuch bf657a33e3 admin: Add set config command (#2051)
Which works this way: 

```
cat config.json | mc admin config set myminio/
```
2017-03-03 15:18:23 -08:00
Anis Elleuch 8ce6f43e35 Stop mirror/diff when difference() sends error (#2049)
The caller of difference() now receives errors so it can
stop mirroring or difference calculation.
2017-03-01 11:06:26 -08:00
Anis Elleuch ecee324c00 admin: Add config get command (#2037) 2017-02-28 14:33:26 -08:00
Harshavardhana 0934a39d73 cli: Fix more commands with inconsistent UI (#2045) 2017-02-28 00:21:46 +01:00
Anis Elleuch 7673ef084d admin: Add info cmd and simplify service status (#2036) 2017-02-27 12:29:12 -08:00
Anis Elleuch 55e010ca52 mirror: Return exit code after mirror/watch error (#2043) 2017-02-27 11:45:16 -08:00
Harshavardhana 1ef242a5c1 Fix all cli commands to have consistent UI (#2040)
Fixes #2038
2017-02-27 11:44:26 -08:00
Anis Elleuch 798775775b Use ` instead of unicode single quote (#2033)
‘ is not supported in some dumb terminals, use ` instead
2017-02-25 11:08:32 -08:00
Harshavardhana 2ca601ef22 cli: Remove help sub-command and --version flag (#2030)
This is to bring consistent CLI experience as before.
2017-02-21 23:00:09 +01:00
Harshavardhana 675fbee1f3 mc: Rewrite update and version command. (#2026)
- Supports docker image
- Supports showing how old your current
  `mc` version is.
2017-02-20 22:04:54 +01:00
Harshavardhana d055f0edac fs: new files and folders created honors umask (#2023)
umask should be honored properly for all write
operations on filesystem. This is in line with
how all unix tools behave.

Fixes #2022
2017-02-19 22:41:56 +01:00
Harshavardhana 1f48b16acb cli: Make sure to add "--help" flag for subcommands. (#2024)
--help is now back and prints properly with command
help template.
2017-02-19 12:30:16 -08:00