Lines Matching refs:file

2  * See the file LICENSE for redistribution information.
91 lsn->file = lp->lsn.file;
96 /* If this information won't fit in the file, swap files. */
101 "log_put: record larger than maximum file size");
110 * Save the last known offset from the previous file, we'll
115 /* Point the current LSN to the new file. */
116 ++lp->lsn.file;
119 /* Reset the file write offset. */
125 lsn->file = lp->lsn.file;
129 * Insert persistent information as the first record in every file.
141 lsn->file = lp->lsn.file;
153 * Append the set of file name information into the log.
216 * in the previous file. Fortunately, prev holds the value we want.
276 t_lsn.file = lp->lsn.file;
280 if (lsn->file > lp->lsn.file ||
281 (lsn->file == lp->lsn.file &&
293 if (lsn->file < lp->s_lsn.file ||
294 (lsn->file == lp->s_lsn.file && lsn->offset <= lp->s_lsn.offset))
313 * file. Acquire a file descriptor if we don't already have one.
315 if (dblp->lfname != dblp->lp->lsn.file)
336 * to a log file, and decrementing either s_lsn.file or s_lsn.offset
340 if (!current && lp->s_lsn.file != 0)
342 --lp->s_lsn.file;
425 * If we haven't opened the log file yet or the current one
426 * has changed, acquire a new log file.
429 if (dblp->lfd == -1 || dblp->lfname != lp->lsn.file)
434 * Seek to the offset in the file (someone may have written it
464 * Map a DB_LSN to a file name.
479 ret = __log_name(dblp, lsn->file, &name, NULL, 0);
497 * Acquire a file descriptor for the current log file.
506 /* Close any previous file descriptor. */
512 /* Get the path of the new file and open it. */
513 dblp->lfname = dblp->lp->lsn.file;
524 * Return the log name for a particular file, and optionally open it.
545 * both the old-style and new-style log file names. The trick is
546 * that all callers of this routine that are opening the log file
547 * read-only want to use an old-style file name if they can't find
554 * Create a new-style file name, and if we're not going to open the
555 * file, return regardless.
562 /* Open the new-style file -- if we succeed, we're done. */
574 /* Create an old-style file name. */
581 * Open the old-style file -- if we succeed, we're done. Free the
598 * looking for any log file. That's not a likely error.