summaryrefslogtreecommitdiff
diff options
authorPMR <pmr@pmr-lander>2019-03-07 14:06:52 +0000
committerPMR <pmr@pmr-lander>2019-03-07 14:06:52 +0000
commitded91d9825eee3c0c85987066542ab2bd97b91f5 (patch)
tree8896df1858f9fe3672f0024003d5876fdb530008
parentb6bf09c6633c446a25d2ab5173ec711f9f5f1ef6 (diff)
parent392ac0f8a62180a9c770892e10bd76967f4050cb (diff)
Merge #364056 from ~bladernr/plainbox-provider-checkbox:1818898-disk_stats-nvdimms
-rwxr-xr-xbin/disk_stats_test6
1 files changed, 6 insertions, 0 deletions
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"