minio / mc

Simple | Fast tool to manage MinIO clusters :cloud:
https://min.io/download
GNU Affero General Public License v3.0
2.84k stars 543 forks source link

allow cat to take part by part numbers #5026

Closed harshavardhana closed 1 month ago

harshavardhana commented 1 month ago

Community Contribution License

All community contributions in this pull request are licensed to the project maintainers under the terms of the Apache 2 license. By creating this pull request I represent that I have the right to license the contributions to the project maintainers under the Apache 2 license.

Description

allow cat to take part by part numbers

Motivation and Context

this allows for downloading different parts by part numbers.

How to test this PR?

Upload a multipart object and then specify

mc cat --part-number=2 alias/bucket/bigfile

Types of changes

Checklist:

harshavardhana commented 1 month ago

LGTM, but just curious about when you want to use this. It looks like we can find the number of parts from the Etag?

It is useful when you want to download specific part numbers, to test "decryption" per part. It was used in a customer environment to uncover a bug.