Allow tests to inquire about whether a mount option is set, rather than just disallowing it via _exclude_scratch_mount_option().
Signed-off-by: Ross Zwisler <ross.zwis...@linux.intel.com> Suggested-by: Amir Goldstein <amir7...@gmail.com> --- common/rc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/common/rc b/common/rc index 0cda9da..701b1ff 100644 --- a/common/rc +++ b/common/rc @@ -3105,6 +3105,16 @@ _exclude_scratch_mount_option() done } +_scratch_has_mount_option() +{ + local mnt_opts=$(_normalize_mount_options) + + if echo $mnt_opts | grep -qw "$1"; then + return 0 + fi + return 1 +} + _require_atime() { _exclude_scratch_mount_option "noatime" -- 2.9.5 _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm