lstat03 and stat04 both fail when LTP_FS_DEV_TYPE is set to XFS (and presumably other fs types) because they try to run mkfs.xfs with i.e. -b 1024 which is valid for mkfs.ext4, but not for mkfs.xfs (which uses mkfs.xfs -b size=1024) or necessarily any other version of mkfs for different filesystems.
I'd send a patch, but I'm not sure about the philosophy behind some of these tests - lstat03 probably does require a specific block size, as it wants to see a different block size vs tmpfs (?). For stat04, I don't think it matters at all.
Restricting both of these tests to ext4 may be the simplest path forward, as is done in statx05.c and elsewhere?
lstat03 and stat04 both fail when LTP_FS_DEV_TYPE is set to XFS (and presumably other fs types) because they try to run
mkfs.xfswith i.e.-b 1024which is valid formkfs.ext4, but not formkfs.xfs(which usesmkfs.xfs -b size=1024)or necessarily any other version of mkfs for different filesystems.I'd send a patch, but I'm not sure about the philosophy behind some of these tests - lstat03 probably does require a specific block size, as it wants to see a different block size vs tmpfs (?). For stat04, I don't think it matters at all.
Restricting both of these tests to ext4 may be the simplest path forward, as is done in statx05.c and elsewhere?