Hi hackers,

I've noticed an odd check in test_aio.c:
if (zero_on_error | zero_damaged_pages)
    srb_flags |= READ_BUFFERS_ZERO_ON_ERROR;

Both zero_on_error and  zero_damaged_pages declared as bool. Shouldn't
there be a logical "||" inside the if-condition, not a bitwise "|"?
Yes, it works now, but fixing it would be cleaner.

Proposed patch is attached (although it's quite trivial).

--
 best regards,
    Mikhail A. Gribkov

Attachment: 001_Fix_bitwise_operation_on_bools.patch
Description: Binary data

Reply via email to