From 392ac0f8a62180a9c770892e10bd76967f4050cb Mon Sep 17 00:00:00 2001 From: Jeff Lane Date: Wed, 6 Mar 2019 14:53:33 -0500 Subject: Modified disk_stats_test to exit with success and a notice if we run on an NVDIMM as NVDIMMs disable iostats by default. LP: #1818898 --- bin/disk_stats_test | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bin') diff --git a/bin/disk_stats_test b/bin/disk_stats_test index 3c88a6c..60b48f5 100755 --- a/bin/disk_stats_test +++ b/bin/disk_stats_test @@ -26,6 +26,12 @@ if [[ "$1" != '' ]]; then DISK="$1" fi +nvdimm="pmem" +if [ -z "${DISK##*$nvdimm*}" ];then + echo "Disk $DISK appears to be an NVDIMM, skipping" + exit $STATUS +fi + #Check /proc/partitions, exit with fail if disk isn't found grep -w -q $DISK /proc/partitions check_return_code $? "Disk $DISK not found in /proc/partitions" -- cgit v1.2.3