Skip to content

Conversation

@ikegami-t
Copy link
Contributor

The JSON outputs changed to verbose by the format version 2.

obj_add_str(obj_iocsc, "NVM Command Set", nvmcs ? "Selected" : "Not selected");
}

static bool human(void)
Copy link
Collaborator

Choose a reason for hiding this comment

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

While at it, we should rename the function, maybe verbose_mode or something similar.

OPT_SHRT("dir-spec", 'S', &cfg.dspec, dspec_w_dtype),
OPT_BYTE("dir-oper", 'O', &cfg.doper, doper),
OPT_SHRT("endir", 'e', &cfg.endir, endir),
OPT_FLAG("human-readable", 'H', &cfg.human_readable, human_readable_directive),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Best leave it the option around, just to avoid to break anyone. Couldn't we map it to verbose mode ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

But if there is no user left, just leave the option. You could add a help text like deprecated; does nothing

@igaw
Copy link
Collaborator

igaw commented May 7, 2025

Looks really good. Thanks a lot!

ikegami-t added 2 commits May 9, 2025 00:34
The JSON outputs changed to verbose by the format version 2.

Signed-off-by: Tokunori Ikegami <[email protected]>
Since the option is not used by the command actually.

Signed-off-by: Tokunori Ikegami <[email protected]>
@ikegami-t ikegami-t force-pushed the output-format-ver branch from cc113a1 to 7690a7c Compare May 8, 2025 15:35
@ikegami-t
Copy link
Contributor Author

Fixed the commits as suggested. Thank you.

@igaw igaw merged commit afd7206 into linux-nvme:master May 9, 2025
17 checks passed
@igaw
Copy link
Collaborator

igaw commented May 9, 2025

Thanks!

Maybe we should also update the documentation on -H and mention to use the --verbose flag instead.

@ikegami-t
Copy link
Contributor Author

Maybe we should also update the documentation on -H and mention to use the --verbose flag instead.

Noted so will do later. Thank you.

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.

2 participants