Re: [sheepdog] [PATCH] util: make xvalloc() return zeroed memory

2014-01-15 Thread MORITA Kazutaka
At Wed, 15 Jan 2014 16:54:42 +0900, Hitoshi Mitake wrote: At Wed, 15 Jan 2014 15:16:00 +0800, Liu Yuan wrote: This actuall fixes a bug that 045 fails with -ec specified. Instead of add a memset() to init_erasure_buffer() to fix the bug, I prefer to make xvalloc() a zeroed memory

[sheepdog] [PATCH] util: make xvalloc() return zeroed memory

2014-01-14 Thread Liu Yuan
This actuall fixes a bug that 045 fails with -ec specified. Instead of add a memset() to init_erasure_buffer() to fix the bug, I prefer to make xvalloc() a zeroed memory version, because: - present CPU and glibc is very good at zero out a memory region. - zeroed version will avoid future misuage

Re: [sheepdog] [PATCH] util: make xvalloc() return zeroed memory

2014-01-14 Thread Hitoshi Mitake
At Wed, 15 Jan 2014 15:16:00 +0800, Liu Yuan wrote: This actuall fixes a bug that 045 fails with -ec specified. Instead of add a memset() to init_erasure_buffer() to fix the bug, I prefer to make xvalloc() a zeroed memory version, because: - present CPU and glibc is very good at zero out a