aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/openzfs/tests/zfs-tests/tests/functional/atime/root_atime_on.ksh
diff options
context:
space:
mode:
Diffstat (limited to 'sys/contrib/openzfs/tests/zfs-tests/tests/functional/atime/root_atime_on.ksh')
-rwxr-xr-xsys/contrib/openzfs/tests/zfs-tests/tests/functional/atime/root_atime_on.ksh9
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/contrib/openzfs/tests/zfs-tests/tests/functional/atime/root_atime_on.ksh b/sys/contrib/openzfs/tests/zfs-tests/tests/functional/atime/root_atime_on.ksh
index 44d471a2128f..3b6a0d9004ce 100755
--- a/sys/contrib/openzfs/tests/zfs-tests/tests/functional/atime/root_atime_on.ksh
+++ b/sys/contrib/openzfs/tests/zfs-tests/tests/functional/atime/root_atime_on.ksh
@@ -7,7 +7,7 @@
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
-# or http://www.opensolaris.org/os/licensing.
+# or https://opensource.org/licenses/CDDL-1.0.
# See the License for the specific language governing permissions
# and limitations under the License.
#
@@ -65,11 +65,10 @@ do
mtpt=$(snapshot_mountpoint $dst)
log_mustnot check_atime_updated $mtpt/$TESTFILE
else
- if is_linux; then
- log_must zfs set relatime=off $(dirname $dst)
- fi
-
log_must zfs set atime=on $(dirname $dst)
+ # inherited relatime won't apply because of mount option, set explicitly
+ log_must zfs set relatime=off $dst
+
log_must check_atime_updated $mtpt/$TESTFILE
log_must check_atime_updated $mtpt/$TESTFILE
fi