Message ID | 149272196500.23427.16512180505514852858.stgit@dwillia2-desk3.amr.corp.intel.com (mailing list archive) |
---|---|
State | Accepted |
Commit | f2b4e4d73140 |
Headers | show |
diff --git a/test/create.sh b/test/create.sh index 1a5d7d77bf25..992f2ff48ad0 100755 --- a/test/create.sh +++ b/test/create.sh @@ -13,6 +13,17 @@ err() { exit $rc } +check_min_kver() +{ + local ver="$1" + : "${KVER:=$(uname -r)}" + + [ -n "$ver" ] || return 1 + [[ "$ver" == "$(echo -e "$ver\n$KVER" | sort -V | head -1)" ]] +} + +check_min_kver "4.5" || { echo "kernel $KVER may lack namespace mode attribute"; exit $rc; } + set -e trap 'err $LINENO' ERR
The "create.sh" test depends on commit commit 0731de0dd95b "libnvdimm, pfn: move 'memory mode' indication to sysfs". Signed-off-by: Dan Williams <dan.j.williams@intel.com> --- test/create.sh | 11 +++++++++++ 1 file changed, 11 insertions(+)