For `--newer-than` and `--older-than`, allow using absolute times.
Example:
```
λ mc ls play/testbucket
[2025-01-22 09:57:12 CET] 676KiB STANDARD Daily checks Procedure for Portainer.docx
[2025-01-22 16:40:07 CET] 22KiB STANDARD dovrennost_mobilizaciya_0-2.docx
λ mc find -newer-than="2025-01-22 09:57:00 CET" play/testbucket
play/testbucket/Daily checks Procedure for Portainer.docx
play/testbucket/dovrennost_mobilizaciya_0-2.docx
λ mc find -newer-than="2025-01-22 09:57:13 CET" play/testbucket
play/testbucket/dovrennost_mobilizaciya_0-2.docx
```
We allow the same timestamp types as `--rewind` and add the printed type for easy copy+paste.
* Split to/from. t/f keys to go directly. <tab> to switch.
* Sort by queue size (q)
* Filter/Sort by reconnects (r)
* Add PgUp+PgDn
* Pause with <space>
Allows traces to be replayed in stats mode from `mc admin trace -json ALIAS >trace.json`, using `mc admin trace -in=trace.json`. `.zst` are automatically decompressed.
This is replayed at full speed, since I don't really see any value in keeping original speed.
Add scrolling to stats. Up+Down+Home+End
Add 'r' to reset min/max stats.
Healing in server side will list with quorum 1, so it will pick stale
objects as well. This is currently not rendered well in mc that shows
this cryptic message:
Invalid parity shard count/surplus shard count given
Print the text sent by the server instead.
* Default to list delete flags if they are part of the result set, so that they are not hidden from the find function
* Add --with-delete-marker flag to toggle the listing of delete markers. Defaults to false
* List delete markers as well when using the --versions flag
Avoid using the drive count concept to pick a color for a bucket healing
result. This was straightforward when we were healing a bucket per erasure
set, but now it becomes more complex to show a result.
Pick green if everything is okay, yellow if a bucket is missing in a
drive, red for any other drive state (unformatted, offline, ..), and
grey for any weird situation.
Client side overall status was always shown as `in-progress` even if
job was successful or failed.
Signed-off-by: Shubhendu Ram Tripathi <shubhendu@minio.io>
This commit adds a string message and json output to mc pipe. The
implementation is heavily inspired by the one in mc cp, just adapted to
the different semantics of pipe.
Check the returned stream for errors and show them. Don't upload/keep pointless data
Use the request alias to create a better file name...
Example:
```
λ mc support inspect play/testbucket/testdat/**
mc: <ERROR> Unable to download file data. GetRawData: No files matched the given pattern.
```
Previously the error would just be ignored.
```
λ mc support inspect --airgap play/testbucket/testdata/**
File data successfully downloaded as inspect-play_testbucket_testdata.enc
```
Previously all files would be called `inspect-data.enc`, which would just be difficult to distinguish.
Currently, attempts to attach a policy to a user who already has
the policy attached to them results in a 400.
This change handles cases where policy attach/detach operations
are automated using scripts/jobs. A re-run of the attach/detach
step should not fail the entire job.
- Do not show healing ETA anymore; there are some scenarios where the
ETA can be wrong. Show when healing is started and the progress of the
healing drive usage compared to nonhealing drives in the same erasure set.
- `--verbose` prints only offline/faulty and healing drives
- `--all-drives` to show information about all drives
- Add yes/no prompt when a user wants to heal the whole namespace
Add checksums to pipe, cp, mirror commands.
> Add checksum to uploaded object. Values: MD5, CRC32, CRC32C, SHA1 or SHA256. Requires server trailing headers support like AWS, MinIO and possibly others.
`--md5` is hidden, but still applied.
Uploads to buckets with object locking will still use MD5.
Bonus: `mc stat` shows checksum information.
Currently, LDAP create-with-login command is not working properly when
the LDAP user does not have admin:CreateServiceAccount permission.
The permission is normally not needed since a user is allowed
to create a service account for itself. In that case, a temporary
account should be created and a new service account should be issued to
the temporary account access key, and not to the LDAP username as what
the code currently does.
This commit will send the correct target user in that case to make
create-with-login always successful.
Co-authored-by: Anis Eleuch <anis@min.io>
When the scanner uses parallel erasure sets scanning, the cycle concept
for the whole scan is no longer relevant. This PR will show the number
of ongoing bucket scans.
```
mc admin scanner status --bucket <bucket-name> ALIAS
```
Will print a detailed report of a particular bucket scan.
Like, when the last scan progress was saved for that bucket for all
erasure sets. Also it will print when a full scan of a bucket finished.
(A full bucket scan means the last time frame that was needed for each
of erasure sets to do sixteen cycles)
To ensure that the server can remove an internal tier configuration
when the tiering is unreachable or other corner cases where it is not
possible for the server to determine if the tier contains some data
or fully empty.
There is no suitable mechanism to estimate the ETA of healing when it is
retrying, although in most cases, it is just a listing that should be
quick enough. Hide the ETA anyway for now.
In a new MinIO version, Healing can be set to false while HealInfo is
not nil. This indicates that the drive was healed and the healing is
finished. This commit adapts the code with the new concept. This will
not break with older MinIO versions since those versions will already
remove .healing.bin, in that case Healing will be false, HealInfo will
be nil.
allow users to avoid list() call when an object does not
exist when following flags are used with `mc stat`
```
--no-list (HEAD the latest version)
--version-id <vid>
```
Also avoid superflous url2Stat() calls while processing
the args, there is no real reason to do that.