LOGSIZE
if (logptr >= LOGSIZE)
if (logcount < LOGSIZE) {
count = LOGSIZE;
opnum = i+1 + rounddown(logcount, LOGSIZE);
if (i == LOGSIZE)
struct log_entry oplog[LOGSIZE]; /* the log */