Re: [PATCH blktests v2 02/11] common/xfs: Create common helper to check for XFS support

From: Chaitanya Kulkarni
Date: Tue Oct 06 2020 - 20:58:29 EST


On 10/6/20 16:51, Logan Gunthorpe wrote:
> _have_xfs() does return true/false and can be used with && or in a
> conditional.
>
> Per [1], my opinion is that using && in the requires() function where
> the return value is ignored is confusing so I prefer not to do it in new
> code.
>
> If we want to reconsider this we, should add a check to ensure the
> return value of requires() matches the expectation of the global
> variable it uses.
>
> Logan
>
> [1]
> https://lore.kernel.org/linux-block/92478e6f-622a-a1ae-6189-4009f9a307bc@xxxxxxxxxxxx/

Make sense to me, lets not change this, thanks for pointing that out.