Thread (21 messages) 21 messages, 2 authors, 2020-10-07

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

From: Chaitanya Kulkarni <hidden>
Date: 2020-10-07 00:58:28
Also in: linux-block, lkml

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/ (local)
Make sense to me, lets not change this, thanks for pointing that out.


_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help