Skip to content

Some stat-related tests are TBROK on XFS due to invalid mkfs argument #1329

Description

@sandeen

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions