From: Yuezhang Mo Date: Fri, 6 Jun 2025 10:28:55 +0000 (+0800) Subject: generic/622: fix for exfat X-Git-Tag: v2025.06.22~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a69ad67d48badc4f394c07767ad2c69fbb557b6d;p=xfstests-dev.git generic/622: fix for exfat After commit(f761fcdd289d exfat: Implement sops->shutdown and ioctl), shutdown is supported by exfat, this test can be run, but fails because exfat has a 2 second granularity for access_time and no timestamps for metadata changes. Signed-off-by: Yuezhang Mo Reviewed-by: Zorro Lang Signed-off-by: Zorro Lang --- diff --git a/tests/generic/622 b/tests/generic/622 index 0c744fde..a67931ad 100755 --- a/tests/generic/622 +++ b/tests/generic/622 @@ -116,6 +116,9 @@ do_test() echo -e "\n# Testing that lazytime $timestamp_type update is persisted by $persist_method" + # exfat does not support last metadata change timestamp + [ "${FSTYP}" == "exfat" -a "${timestamp_type}" == "ctime" ] && return 0 + # Mount the filesystem with lazytime. If atime is being tested, then # also use strictatime, since otherwise the filesystem may default to # relatime and not do the atime updates. @@ -128,6 +131,10 @@ do_test() # Update the specified timestamp on the file. local orig_time=$(get_timestamp $timestamp_type) sleep 0.1 + + # exfat's timestamp for access_time has double seconds granularity + [ "${FSTYP}" == "exfat" -a "${timestamp_type}" == "atime" ] && sleep 2 + case $timestamp_type in atime) # Read from the file to update its atime.