-
Notifications
You must be signed in to change notification settings - Fork 698
ocp: Fixes to telemetry-string-log command #2897
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
Conversation
7c11da6 to
e26e632
Compare
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), |
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.
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.
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.
btw, we don't have a man page for this command either ;)
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.
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.
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
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.
@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 <[email protected]> Reviewed-by: brandon-paupore-sndk <[email protected]>
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 <[email protected]>
3063bda to
c9c4565
Compare
|
Thanks! |

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.