Message ID | 20171117202828.25472-2-ross.zwisler@linux.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
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"
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.zwisler@linux.intel.com> Suggested-by: Amir Goldstein <amir73il@gmail.com> --- common/rc | 10 ++++++++++ 1 file changed, 10 insertions(+)