opencurve / curve

Curve is a sandbox project hosted by the CNCF Foundation. It's cloud-native, high-performance, and easy to operate. Curve is an open-source distributed storage system for block and shared file storage.
https://opencurve.io
Apache License 2.0
2.33k stars 522 forks source link

[feat]tools-v2: add bs recover volume #2918

Closed CrystalAnalyst closed 10 months ago

CrystalAnalyst commented 11 months ago

What problem does this PR solve?

Issue Number: #2588

Problem Summary: Add a feature that can recover the specified volume from the RecycleBin.

What is changed and how it works?

What's Changed: add recover directory, and inside of it is a volume sub-directory, and two files: recover.go, file.go.

How it Works: recover.go act as an entry, while file.go call the Rpc function to execute the actual recover action.

Side effects(Breaking backward compatibility? Performance regression?):

Check List

CrystalAnalyst commented 11 months ago

okay, thanks a lot for your advice, I'll fix it in the next few days.