Add xl-meta partial shard reconstruction (#19841)

Add partial shard reconstruction

* Add partial shard reconstruction
* Fix padding causing the last shard to be rejected
* Add md5 checks on single parts
* Move md5 verified to `verified/filename.ext`
* Move complete (without md5) to `complete/filename.ext.partno`

It's not pretty, but at least now the md5 gives some confidence it works correctly.
This commit is contained in:
Klaus Post
2024-05-31 07:49:23 -07:00
committed by GitHub
parent 1277ad69a6
commit d67bccf861
2 changed files with 265 additions and 35 deletions

View File

@@ -59,7 +59,7 @@ func main() {
}
// Prompt for decryption key if no --key or --private-key are provided
if len(privateKey) == 0 {
if len(privateKey) == 0 && !*stdin {
reader := bufio.NewReader(os.Stdin)
fmt.Print("Enter Decryption Key: ")