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

[tools-v2]: curve bs need a command for files in recycle bin to restore #2907

Open zhengweizhu opened 11 months ago

zhengweizhu commented 11 months ago

Is your feature request related to a problem? (你需要的功能是否与某个问题有关?) By means of tools-v2 cli we can delete a file by command "curve bs delete file --path /test1 --force false", and eventually the file will be just renamed a file in dir /RecycleBin. By the way, the flag --force is not allowed to be true due to the limitation of curvebs mds. Also the curve cli has a subcommand clean-recycle to do clean job in /RecycleBin. The problem is that the curve cli seems not to support to restore the files in /RecycleBin, which can't explain the meaning of existing of recycle bin.

Describe the solution you'd like (描述你期望的解决方法) Add a restore subcommand like this "curve bs restore --path /RecycleBin/test1-4".

Describe alternatives you've considered (描述你想到的折衷方案)

Additional context/screenshots (更多上下文/截图)

zhengweizhu commented 11 months ago

BTW I am glad to fix this issue if necessary.

montaguelhz commented 11 months ago

welcome to fix it