]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
generic/622: fix for exfat
authorYuezhang Mo <Yuezhang.Mo@sony.com>
Fri, 6 Jun 2025 10:28:55 +0000 (18:28 +0800)
committerZorro Lang <zlang@kernel.org>
Wed, 18 Jun 2025 16:54:03 +0000 (00:54 +0800)
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 <Yuezhang.Mo@sony.com>
Reviewed-by: Zorro Lang <zlang@redhat.com>
Signed-off-by: Zorro Lang <zlang@kernel.org>
tests/generic/622

index 0c744fdeafe4c1ee53a67dccff5fae01d4d83ac3..a67931ad877fded53d1a0b75aa2237ba91c683ca 100755 (executable)
@@ -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.