Re: [Gluster-devel] regarding mem_0filled, iov_0filled and memdup

2015-05-22 Thread Niels de Vos
On Fri, May 22, 2015 at 09:57:17AM +0530, Pranith Kumar Karampuri wrote: hi, These functions return 0 when 0filled and non-zero value when not 0filled. This is quite unintuitive as people think that it should return _gf_true when 0filled and false when it is not 0filled. This comes up as

[Gluster-devel] regarding mem_0filled, iov_0filled and memdup

2015-05-21 Thread Pranith Kumar Karampuri
hi, These functions return 0 when 0filled and non-zero value when not 0filled. This is quite unintuitive as people think that it should return _gf_true when 0filled and false when it is not 0filled. This comes up as bug in reviews quite a few times, so decided may be it is better to change