]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/rc: exclude HFS from atime testing
authorViacheslav Dubeyko <slava@dubeyko.com>
Thu, 14 May 2026 20:00:05 +0000 (13:00 -0700)
committerZorro Lang <zlang@kernel.org>
Wed, 20 May 2026 10:38:38 +0000 (18:38 +0800)
HFS hasn't any field in on-disk layout that can keep
the file/folder access times (atime):

/* The catalog record for a file */
struct hfs_cat_file {
        s8 type;                        /* The type of entry */
        u8 reserved;
        u8 Flags;                       /* Flags such as read-only */
        s8 Typ;                         /* file version number = 0 */
        struct hfs_finfo UsrWds;        /* data used by the Finder */
        __be32 FlNum;                   /* The CNID */
        __be16 StBlk;                   /* obsolete */
        __be32 LgLen;                   /* The logical EOF of the data fork*/
        __be32 PyLen;                   /* The physical EOF of the data fork */
        __be16 RStBlk;                  /* obsolete */
        __be32 RLgLen;                  /* The logical EOF of the rsrc fork */
        __be32 RPyLen;                  /* The physical EOF of the rsrc fork */
        __be32 CrDat;                   /* The creation date */
        __be32 MdDat;                   /* The modified date */
        __be32 BkDat;                   /* The last backup date */
        struct hfs_fxinfo FndrInfo;     /* more data for the Finder */
        __be16 ClpSize;                 /* number of bytes to allocate
                                           when extending files */
        hfs_extent_rec ExtRec;          /* first extent record
                                           for the data fork */
        hfs_extent_rec RExtRec;         /* first extent record
                                           for the resource fork */
        u32 Resrv;                      /* reserved by Apple */
} __packed;

This patch disable the generic/003 and atime related test-cases for
HFS file system.

Signed-off-by: Viacheslav Dubeyko <slava@dubeyko.com>
cc: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
cc: Yangtao Li <frank.li@vivo.com>
cc: linux-fsdevel@vger.kernel.org
cc: fstests@vger.kernel.org
Reviewed-by: Zorro Lang <zlang@kernel.org>
Signed-off-by: Zorro Lang <zlang@kernel.org>
common/rc

index 79189e7e6e948728aff7e5c859ed69f5631c7573..71d87288161054f935427a31e689c77de4ad40ba 100644 (file)
--- a/common/rc
+++ b/common/rc
@@ -4577,7 +4577,7 @@ _require_atime()
        nfs|afs|cifs|virtiofs)
                _notrun "atime related mount options have no effect on $FSTYP"
                ;;
-       ceph|ceph-fuse)
+       ceph|ceph-fuse|hfs)
                _notrun "atime not maintained by $FSTYP"
                ;;
        esac