Lines Matching defs:to

71 /* This is the default maximum number of journal files to keep around. */
77 /* How many entries to keep in the entry array chain cache at max */
80 /* How much to increase the journal file size at once each time we allocate something new. */
86 /* The mmap context to use for the header we pick as one above the last defined typed */
169 /* Be friendly to btrfs: turn COW back on again now,
170 * and defragment the file. We won't write to the file
265 /* Sync the online state to disk */
280 /* In both read and write mode we refuse to open files with
294 /* When open for writing we refuse to open files with
372 /* Refuse appending to files that are already deleted */
404 * we write to it, let's check with fstat() if the
439 inefficient, hence we try to minimize the allocation area
554 * both the local and the external one, and set it to
631 of journal file and we want to make sure we never get
813 /* Move back to the previous data object, to patch in
1422 * trigger IN_MODIFY by truncating the journal file to its
1428 log_debug_errno(errno, "Failed to truncate file to its own size: %m");
1451 log_debug_errno(r, "Failed to get ftruncate timer state: %m");
1460 log_debug_errno(r, "Failed to get clock's now for scheduling ftruncate: %m");
1466 log_debug_errno(r, "Failed to set time for scheduling ftruncate: %m");
1472 log_debug_errno(r, "Failed to enable scheduled ftruncate: %m");
1556 /* Order by the position on disk, in order to improve seek
1563 * IO error and ignore the error code passed down to us, since
1583 uint64_t last_index; /* the last index we looked at, to optimize locality when bisecting */
1596 /* If the chain item to cache for this chain is the
1759 * straight to previously cached array in the
1801 * looked at, let's try to not to jump
1803 * limit the range to look at early to
1959 /* if we are looking with DIRECTION_UP then we need to first
1962 to return this one. Hence remember this, and return it
2264 /* And jump to it */
2678 * unfriendly to COW file systems this should greatly improve
2685 return log_warning_errno(r, "Failed to determine if journal is on btrfs: %m");
2691 return log_warning_errno(r, "Failed to read file attributes: %m");
2699 "This is likely to slow down journal access substantially, please consider turning "
2787 /* Let's attach the creation time to the journal file,
2792 * currently no usable API to query this, hence let's
2800 /* Try to load the FSPRG state, and if we can't, then
2932 /* Try to rename the file to the archived version. If the file
3012 int journal_file_copy_entry(JournalFile *from, JournalFile *to, Object *o, uint64_t p, uint64_t *seqnum, Object **ret, uint64_t *offset) {
3020 assert(to);
3024 if (!to->writable)
3075 r = journal_file_append_data(to, data, l, &u, &h);
3088 r = journal_file_append_entry_internal(to, &ts, xor_hash, items, n, seqnum, ret, offset);
3090 if (mmap_cache_got_sigbus(to->mmap, to->fd))
3099 /* Set everything to "pick automatic values". */
3122 log_debug_errno(errno, "Failed to detremine disk size: %m");
3203 int journal_file_get_cutoff_realtime_usec(JournalFile *f, usec_t *from, usec_t *to) {
3206 assert(from || to);
3215 if (to) {
3219 *to = le64toh(f->header->tail_entry_realtime);
3225 int journal_file_get_cutoff_monotonic_usec(JournalFile *f, sd_id128_t boot_id, usec_t *from, usec_t *to) {
3231 assert(from || to);
3248 if (to) {
3261 *to = le64toh(o->entry.monotonic);