History log of /freebsd-10-stable/usr.sbin/fifolog/lib/fifolog_reader.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 306910 09-Oct-2016 pfg

MFC r305812:

fifolog(1): invert order of calloc(3) arguments.

The second argument to calloc(3) should be the size, make it so.

While here be a little bit more cautious in fifolog_reader_open()
to protect in the unlikely event of an overflowed allocation.


# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 219027 25-Feb-2011 phk

Fix a bunch of trivial whitespace mistakes and update the miniobj.h
file before the real work starts.


# 209871 10-Jul-2010 keramida

Fix reading of empty fifolog files. When we don't have anything
to inflate, skip the rest of the fifolog reader code to avoid
hitting the assert about Z_OK a bit further down.

Approved by: phk
MFC after: 1 week


# 208110 15-May-2010 phk

Do not attempt to render a logrecord with length byte, until we have
decompressed all the bytes required.


# 188008 02-Feb-2009 phk

The last sector in the first segment might just be a sync, increment before
checking validity of segment two.


# 185790 09-Dec-2008 phk

Fix a cornercase during search


# 176998 09-Mar-2008 phk

Add the fifolog tools to FreeBSD.

Quoth the man-page:

Fifologs provide a compact round-robin circular storage for recording
text and binary information to permanent storage in a bounded and pre-
dictable fashion, time and space wise.

Not yet connected to the build, but feel free to test & review.