-
Notifications
You must be signed in to change notification settings - Fork 523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feat]tools-v2: curve bs create clone #2639
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The command should be two:
curve bs create volume clone
curve bs create volume recover
They all use the same rpc request, but the parameters are not available.
You can abstract this rpc request, and then call it separately by the above commands. For this, you can refer to create file/dir.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can add instructions on how to use it in the readme.
will do |
@lng2020 continue? |
@lng2020 any trouble? |
wait for #2713 to merge. Those commands are highly associated, with basically the exact solutions. |
merged |
f605538
to
116f563
Compare
Signed-off-by: lng2020 <nanguanlin6@gmail.com>
116f563
to
0abe9b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add some output
@lng2020 continue? |
No. Sorry about that. But it's almost finished. Maybe others can refer this. |
What problem does this PR solve?
Issue Number: #2586
Problem Summary: add
curve bs create clone
commandWhat is changed and how it works?
What's Changed: ./pkg/cli/command/curvebs/create/create.go, ./pkg/cli/command/curvebs/create/clone and ./pkg/internal/error/error.go
How it Works: send
CreateCloneFileRequest
to clone fileSide effects(Breaking backward compatibility? Performance regression?):
Check List