| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. |
| 2 | |
| 3 | . wrapper-utils.shscip-shell source . . `wrapper-utils.sh`. |
| 4 | |
| 5 | # |
| 6 | # hugetlbfs fallocate support was not available until 4.3 |
| 7 | # |
| 8 | compare_kvers `unamescip-shell system . . uname. -r` "4.3.0" |
| 9 | if [scip-shell system . . `[`. $? -eq 1 ]; then |
| 10 | echoscip-shell system . . echo. "FAIL no fallocate support in kernels before 4.3.0" |
| 11 | exit $RC_FAIL |
| 12 | else |
| 13 | EXP_RC=$RC_PASS |
| 14 | exec_and_check $EXP_RC fallocate_basic "$@" |
| 15 | fi |