FEAT: pmempool feature --query
should display all available pool features
#5073
Labels
pmempool
src/libpmempool and src/tools/pmempool
Priority: 4 low
Type: Feature
A feature request
won't do
The requested improvement is not planned to be done.
Milestone
FEAT:
pmempool feature --query
should display all available pool featuresRationale
Currently,
pmempool feature --query
mandates the user to provide the feature they want to test. To improve usability, and to reduce the number of commands the user must run to establish all the information,pmempool feature
should show all the available features and values in a single command.#5072 requests all pool feature information be shown in the
pmempool info
command. This feature requests that the pool features be shown inpmempool feature
command.Description
There are multiple pool features available: SINGLEHDR, CKSUM_2K, SHUTDOWN_STATE, CHECK_BAD_BLOCKS. To establish if a pool has these features, the user is forced to check each in turn:
To improve usability, it would be preferable to loop over all the available features and display their values. We could support this by providing no command, eg:
Additionally, we could change the
--query
behaviour to optionally provide a feature. If no specific feature is specified, pmempool would show all available features, eg:The current behaviour would be maintained if the user specifies a feature to query.
API Changes
None
Implementation details
TBD
Meta
N/A
The text was updated successfully, but these errors were encountered: