Skip to content
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

Closed

Conversation

lng2020
Copy link
Contributor

@lng2020 lng2020 commented Jul 21, 2023

What problem does this PR solve?

Issue Number: #2586

Problem Summary: add curve bs create clone command

What 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 file

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

Check List

  • Relevant documentation/comments is changed or added
  • I acknowledge that all my contributions will be made under the project's license

@lng2020 lng2020 changed the title [feat]curve bs create clone [feat]tools-v2: curve bs create clone Jul 21, 2023
Copy link
Contributor

@Cyber-SiKu Cyber-SiKu left a 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.

Copy link
Contributor

@Cyber-SiKu Cyber-SiKu left a 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.

@lng2020
Copy link
Contributor Author

lng2020 commented Jul 31, 2023

will do

@Cyber-SiKu
Copy link
Contributor

@lng2020 continue?

@wuhongsong
Copy link
Contributor

@lng2020 any trouble?

@lng2020
Copy link
Contributor Author

lng2020 commented Sep 8, 2023

wait for #2713 to merge. Those commands are highly associated, with basically the exact solutions.

@Cyber-SiKu
Copy link
Contributor

wait for #2713 to merge. Those commands are highly associated, with basically the exact solutions.

merged

@lng2020 lng2020 force-pushed the feature/curve-bs-create-clone branch from f605538 to 116f563 Compare September 25, 2023 13:40
Signed-off-by: lng2020 <nanguanlin6@gmail.com>
@lng2020 lng2020 force-pushed the feature/curve-bs-create-clone branch from 116f563 to 0abe9b3 Compare September 25, 2023 13:42
Copy link
Contributor

@Cyber-SiKu Cyber-SiKu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add some output

@caoxianfei1
Copy link
Contributor

@lng2020 continue?

@lng2020
Copy link
Contributor Author

lng2020 commented Oct 30, 2023

@lng2020 continue?

No. Sorry about that. But it's almost finished. Maybe others can refer this.

@lng2020 lng2020 closed this Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants