Lines Matching refs:op
325 5 /* op is NO_OP, last bit 8 bits back */
406 the log structure. Return op on success or -1 if the gzip header was not as
407 expected. op is the current operation in progress last written to the extra
412 int op;
428 op = (buf[HEAD + 34] >> 3) & 3;
429 return op;
432 /* Write over the extra field contents, marking the operation as op. Use fsync
437 local int log_mark(struct log *log, int op)
449 ext[34] = log->back - 3 + (op << 3);
718 local void log_log(struct log *log, int op, char *record)
728 fprintf(rec, "%.24s %s recovery: %s\n", ctime(&now), op == APPEND_OP ?
729 "append" : (op == COMPRESS_OP ? "compress" : "replace"), record);
734 /* Recover the interrupted operation op. First read foo.add for recovering an
738 local int log_recover(struct log *log, int op)
746 log_log(log, op, "start");
749 if (op == APPEND_OP || op == COMPRESS_OP) {
754 log_log(log, op, "allocation failure");
758 log_log(log, op, ".add file read failure");
764 log_log(log, op, ".add file read failure");
767 log_log(log, op, "loaded .add file");
770 log_log(log, op, "missing .add file!");
774 switch (op) {
786 log_log(log, op, ret ? "failure" : "complete");
814 int op;
847 if ((op = log_head(log)) < 0) {
853 if (op != NO_OP && log_recover(log, op)) {