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

Chaitanya Kulkarni Chaitanya.Kulkarni at wdc.com
Tue Oct 6 20:58:23 EDT 2020


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@deltatee.com/

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




More information about the Linux-nvme mailing list