]> sourceware.org Git - lvm2.git/commit
When glibc needs buffers for line buffering of input and output buffers, it
authorPetr Rockai <prokai@redhat.com>
Sat, 7 May 2011 13:50:11 +0000 (13:50 +0000)
committerPetr Rockai <prokai@redhat.com>
Sat, 7 May 2011 13:50:11 +0000 (13:50 +0000)
commitd792fc925ce767f24a28af57e368a15d1d518502
tree827cae3564461fc304d30667b2d9adfe29b00f65
parentf9e419bad6098ce564b21db02979aa279ac36c7e
When glibc needs buffers for line buffering of input and output buffers, it
allocates these buffers in such way it adds memory page for each such buffer
and size of unlock memory check will mismatch by 1 or 2 pages.

This happens when we print or read lines without '\n' so these buffers are
used. To avoid this extra allocation, use setvbuf to set these bufffers ahead.

Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com>
Reviewed-by: Milan Broz <mbroz@redhat.com>
Reviewed-by: Petr Rockai <prockai@redhat.com>
daemons/clvmd/lvm-functions.c
lib/commands/toolcontext.c
lib/commands/toolcontext.h
liblvm/lvm_base.c
tools/lvmcmdline.c
This page took 0.039771 seconds and 5 git commands to generate.