Signed-off-by: Yi Zhang <yi.zhang@xxxxxxxxxx> --- common/rc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/common/rc b/common/rc index e490041..847be1b 100644 --- a/common/rc +++ b/common/rc @@ -324,6 +324,14 @@ _get_pci_parent_from_blkdev() { tail -2 | head -1 } +_get_test_dev_size_mb() { + local test_dev_sz + test_dev_sz=$(blockdev --getsize64 "$TEST_DEV") + + echo $((test_dev_sz / 1024 / 1024)) + +} + _require_test_dev_in_hotplug_slot() { local parent parent="$(_get_pci_parent_from_blkdev)" -- 2.34.1