]> www.infradead.org Git - users/sagi/blktests.git/commit
nvme/rc: Auto convert test device size info
authorDaniel Wagner <dwagner@suse.de>
Thu, 11 May 2023 14:09:43 +0000 (16:09 +0200)
committerShin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Thu, 25 May 2023 23:43:53 +0000 (08:43 +0900)
commit2c8474fcefa91c612fcb3df1fcd022ffbedb2d6f
tree7a75bc4ce1d8e5ddef312ab627e0ca35ba3b8981
parentb719b067e63822cdd67f834aa13bb27b14553bf9
nvme/rc: Auto convert test device size info

Introduce a convert_to_mb() helper which converts the size argument
to MBytes and use in test device require function. This makes it
possible to use user input strings in future.

Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: Shin'ichiro Kawasaki <shinichiro.kawasaki@wdc.com>
common/rc
tests/nvme/035