LOGPTLRSIZE
if (log->eor >= LOGPSIZE - LOGPTLRSIZE)
if (dstoffset >= LOGPSIZE - LOGPTLRSIZE) {
freespace = (LOGPSIZE - LOGPTLRSIZE) - dstoffset;
if (dstoffset < LOGPSIZE - LOGPTLRSIZE)
freespace = (LOGPSIZE - LOGPTLRSIZE) - dstoffset;
if (dstoffset < LOGPSIZE - LOGPTLRSIZE)