Re: [PATCH v2 1/5] hbitmap: handle set/reset with zero length

2019-10-18 Thread Max Reitz
On 11.10.19 11:07, Vladimir Sementsov-Ogievskiy wrote: > Passing zero length to these functions leads to unpredicted results. > Zero-length set/reset may occur in active-mirror, on zero-length write > (which is unlikely, but not guaranteed to never happen). > > Let's just do nothing on zero-length

[PATCH v2 1/5] hbitmap: handle set/reset with zero length

2019-10-11 Thread Vladimir Sementsov-Ogievskiy
Passing zero length to these functions leads to unpredicted results. Zero-length set/reset may occur in active-mirror, on zero-length write (which is unlikely, but not guaranteed to never happen). Let's just do nothing on zero-length request. Signed-off-by: Vladimir Sementsov-Ogievskiy --- util