Skip to content

tools/ceph-bluestore-tool: fix "--yes-i-really-really-mean-it" option#59627

Closed
ifed01 wants to merge 1 commit intoceph:mainfrom
ifed01:wip-ifed-bluestore-tool-really-really
Closed

tools/ceph-bluestore-tool: fix "--yes-i-really-really-mean-it" option#59627
ifed01 wants to merge 1 commit intoceph:mainfrom
ifed01:wip-ifed-bluestore-tool-really-really

Conversation

@ifed01
Copy link
Contributor

@ifed01 ifed01 commented Sep 5, 2024

Fixes: https://tracker.ceph.com/issues/67926

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox
  • jenkins test windows
  • jenkins test rook e2e

@ifed01 ifed01 added the tools label Sep 5, 2024
@ifed01 ifed01 requested a review from YiteGu September 5, 2024 19:03
@ifed01 ifed01 requested a review from a team as a code owner September 5, 2024 19:03
exit(EXIT_FAILURE);
}
if (really.empty() || strcmp(really.c_str(), "--yes-i-really-really-mean-it") != 0) {
if (!vm.count("yes-i-really-really-mean-it")) {
Copy link
Member

Choose a reason for hiding this comment

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

Partial matching of long options will result in passing the check, for example, I intentionally entered --yes, this also pass the check.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, you're right. Should be fixed now.

@ifed01 ifed01 force-pushed the wip-ifed-bluestore-tool-really-really branch from 507dd04 to 64db583 Compare September 6, 2024 09:02
@ifed01 ifed01 force-pushed the wip-ifed-bluestore-tool-really-really branch from 64db583 to c266ef0 Compare September 6, 2024 09:08
@ifed01
Copy link
Contributor Author

ifed01 commented Sep 17, 2024

Closing in favor of #59762

@ifed01 ifed01 closed this Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants