[libmultipath] Fix overflow in circular queue
authorHannes Reinecke <hare@suse.de>
Wed, 16 May 2007 07:31:47 +0000 (09:31 +0200)
committerChristophe Varoqui <cvaroqui@zezette.localdomain>
Mon, 21 May 2007 21:17:41 +0000 (23:17 +0200)
commit211995dc42592b16103f04c90e4479712830344e
tree39dfd8aea9f089f1dda4e393aec621177e4e36e6
parent3adc2bddc3dd21b64d053e9086f9ba4a42be9d0f
[libmultipath] Fix overflow in circular queue

Multipathd has a circular buffer where messages are stored prior to being
passed into the system logs. Under certain circumstances the circular buffer
fills up; and the intention appears to be that new messages are dropped until
space is freed in the buffer.

However sometimes the result of a full circular buffer is to overwrite the
earlier messages before they have been passed to the system buffer; resulting
in the loss of early messages and corruption of later messages.

Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/log.c