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

curvefs/client: rm create fs in init #905

Merged

Conversation

Cyber-SiKu
Copy link
Contributor

  1. curvefs_tool has add create-fs
  2. fix some error output

What problem does this PR solve?

Issue Number: close #891

Problem Summary:

What is changed and how it works?

What's Changed:

How it Works:

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

@Cyber-SiKu Cyber-SiKu force-pushed the curvefs-tools/create-fs-rm-createfs-client branch 4 times, most recently from cd7524d to c764b58 Compare January 5, 2022 11:25
@Cyber-SiKu
Copy link
Contributor Author

recheck

5 similar comments
@Cyber-SiKu
Copy link
Contributor Author

recheck

@Cyber-SiKu
Copy link
Contributor Author

recheck

@Cyber-SiKu
Copy link
Contributor Author

recheck

@Cyber-SiKu
Copy link
Contributor Author

recheck

@Cyber-SiKu
Copy link
Contributor Author

recheck

@Cyber-SiKu Cyber-SiKu force-pushed the curvefs-tools/create-fs-rm-createfs-client branch 3 times, most recently from e512143 to b52da90 Compare January 12, 2022 09:44
@opencurve opencurve deleted a comment from YunhuiChen Jan 14, 2022
@opencurve opencurve deleted a comment from YunhuiChen Jan 14, 2022
@Cyber-SiKu
Copy link
Contributor Author

recheck

<< ", fsName = " << fsName;
return ret2;
}
LOG(ERROR) << "The fsName not exist, try to CreateFs"
Copy link
Member

Choose a reason for hiding this comment

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

”try to CreateFs“ is not need.

} else if (response_->statuscode() == mds::FSStatusCode::OK) {
// create success
} else if (response_->statuscode() == mds::FSStatusCode::OK ||
response_->statuscode() == mds::FSStatusCode::FS_EXIST) {
Copy link
Member

Choose a reason for hiding this comment

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

maybe fs is truely exist, still return success?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

maybe fs is truely exist, still return success?

This is a bug that was fixed by other PRs, and I forgot to modify it here.

// create success
} else if (response_->statuscode() == mds::FSStatusCode::OK ||
response_->statuscode() == mds::FSStatusCode::FS_EXIST) {
// create success or fs exist
std::cout << "create fs success." << std::endl;
} else if (response_->statuscode() == mds::FSStatusCode::FS_EXIST) {
Copy link
Member

@xu-chaojie xu-chaojie Jan 14, 2022

Choose a reason for hiding this comment

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

if so, this branch will never be entered

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a bug that was fixed by other PRs, and I forgot to modify it here.

@Cyber-SiKu Cyber-SiKu force-pushed the curvefs-tools/create-fs-rm-createfs-client branch from b52da90 to 57d5fad Compare January 17, 2022 02:08
@Cyber-SiKu
Copy link
Contributor Author

recheck

1. curvefs_tool has add create-fs
2. fix some error output
@Cyber-SiKu Cyber-SiKu force-pushed the curvefs-tools/create-fs-rm-createfs-client branch from 57d5fad to 0deeeb4 Compare January 18, 2022 01:46
@Cyber-SiKu
Copy link
Contributor Author

recheck

2 similar comments
@Cyber-SiKu
Copy link
Contributor Author

recheck

@Cyber-SiKu
Copy link
Contributor Author

recheck

@Cyber-SiKu Cyber-SiKu changed the base branch from fs to master January 18, 2022 12:04
@Cyber-SiKu Cyber-SiKu changed the base branch from master to fs January 18, 2022 12:05
@Cyber-SiKu
Copy link
Contributor Author

recheck

@Cyber-SiKu
Copy link
Contributor Author

recheck

@Cyber-SiKu Cyber-SiKu merged commit 0e91b33 into opencurve:fs Jan 19, 2022
@Cyber-SiKu Cyber-SiKu deleted the curvefs-tools/create-fs-rm-createfs-client branch January 19, 2022 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants