summaryrefslogtreecommitdiff
diff options
-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"