Linux filesystem development
 help / color / mirror / Atom feed
* [PATCH] xfstests: disable generic/003 for HFS file system
@ 2026-05-14 20:00 Viacheslav Dubeyko
  0 siblings, 0 replies; only message in thread
From: Viacheslav Dubeyko @ 2026-05-14 20:00 UTC (permalink / raw)
  To: zlang, fstests
  Cc: glaubitz, Slava.Dubeyko, linux-fsdevel, frank.li,
	Viacheslav Dubeyko

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 test-case 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
---
 common/rc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/common/rc b/common/rc
index 5fe44e21..b897ef0b 100644
--- a/common/rc
+++ b/common/rc
@@ -4559,6 +4559,9 @@ _require_atime()
 	ceph|ceph-fuse)
 		_notrun "atime not maintained by $FSTYP"
 		;;
+	hfs)
+		_notrun "atime not maintained by $FSTYP"
+		;;
 	esac
 
 }
-- 
2.43.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-05-14 20:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-14 20:00 [PATCH] xfstests: disable generic/003 for HFS file system Viacheslav Dubeyko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox