[LTP] [PATCH] m4/ltp-xfs_quota.m4: fix xfs quota check

Cyril Hrubis chrubis@suse.cz
Thu Oct 13 16:11:45 CEST 2016


Hi!
> Current check doesn't work since xfsprogs v4.5.0.
> Undefined off64_t type leads to this issue, so we
> need to define _GNU_SOURCE to make off64_t defined.
> 
> This has been broken by upstream xfsporgs-dev commmit
> 
> commit cb898f157f8410a03cf5f3400baa1df9e5eecd33
> Author: Felix Janda <felix.janda@posteo.de>
> Date: Fri Feb 5 08:34:06 2016 +1100
> 
>   linux.h: Use off64_t instead of loff_t

That kind of looks like a bug in xfs-progs, since off64_t is not exposed
from glibc unless we enable either largefile support or define
_GNU_SOURCE. As a matter of fact the _GNU_SOURCE enables
_LARGEFILE64_SOURCE which then enables the typedef that exposes the
off64_t typedef.

So they are depending on a type that is not defined by default but since
the code has been part of at least three releases already we have to
apply the workaround for it anyway.

Patch pushed, thanks.

[CCing the XFS mailing list in case they want to do something about it]

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list