From fc58acea5165ca9f5cfd27eacb8902d3882d4cdc Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Wed, 5 Jul 2017 16:39:28 -0700 Subject: [PATCH] scripts/setup.sh: match hugetlbfs by type, not device On some systems, hugetlbfs is reported as being mounted on 'nodev' rather than 'hugetlbfs'; use the type instead of the device to match the hugetlbfs filesystem. Change-Id: I56498b7cf01de9759669fe313048b43b2319b933 Signed-off-by: Daniel Verkamp Reviewed-on: https://review.gerrithub.io/368228 Reviewed-by: Ben Walker Tested-by: SPDK Automated Test System Reviewed-by: Jim Harris --- scripts/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/setup.sh b/scripts/setup.sh index 27c5843bb9..f3fe968716 100755 --- a/scripts/setup.sh +++ b/scripts/setup.sh @@ -42,7 +42,7 @@ function linux_bind_driver() { } function linux_hugetlbfs_mount() { - mount | grep '^hugetlbfs ' | awk '{ print $3 }' + mount | grep ' type hugetlbfs ' | awk '{ print $3 }' } function configure_linux {