ocp: Fixes to telemetry-string-log command#2897
Merged
igaw merged 2 commits intolinux-nvme:masterfrom Aug 27, 2025
Merged
Conversation
7c11da6 to
e26e632
Compare
igaw
reviewed
Aug 22, 2025
plugins/ocp/ocp-nvme.c
Outdated
| OPT_FMT("output-format", 'o', &cfg.output_format, | ||
| OPT_FMT("output-format", 'f', &cfg.output_format, | ||
| "output Format:normal|json|binary"), | ||
| OPT_FILE("output-file", 'o', &cfg.output_file, output_file), |
Collaborator
There was a problem hiding this comment.
Not sure about the -o. nvme-cli switched over to use -o for --output-format everywhere. It was a bit painful but now it is there and it is consistent. This here will introduce a regression and people will certainly complain.
Collaborator
There was a problem hiding this comment.
btw, we don't have a man page for this command either ;)
Contributor
Author
Collaborator
There was a problem hiding this comment.
Ah, I see. I thought that the ocp plugin also uses the -o consistently for the output format. I think it would be good if we stick throughout nvme-cli for a few global arguments
- -v/--verbose
- -o/--output-format
- --output-format-version
- -t/--timeout
- --dry-run
Contributor
Author
There was a problem hiding this comment.
@igaw
Updated and fixed the man page.
changed output-format back to use -o and output-file to use -f.
68051e7 to
3063bda
Compare
Added option to specify output-file Fix telemetry-string-log output file initialization Signed-off-by: jeff-lien-sndk <jeff.lien@sandisk.com> Reviewed-by: brandon-paupore-sndk <brandon.paupore@sandisk.com>
Renamed nvme-ocp-telemetry-string-log-page.txt to nvme-ocp-telemetry-string-log.txt so it now matches the command name. Added the output-filename options to man page documentation. Signed-off-by: jeff-lien-sndk <jeff.lien@sandisk.com>
3063bda to
c9c4565
Compare
Collaborator
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Added option to specify output-file
The output_format input parm should use -f and the output_file parm should use -o to match the internal-log command.
The output file initialization will add .bin to the passed in output file parm.