Home
last modified time | relevance | path

Searched refs:keep_free (Results 1 – 6 of 6) sorted by relevance

/systemd-251/src/coredump/
Dcoredump-vacuum.c69 static bool vacuum_necessary(int fd, uint64_t sum, uint64_t keep_free, uint64_t max_use) { in vacuum_necessary() argument
98 if (keep_free == UINT64_MAX) { in vacuum_necessary()
101 keep_free = PAGE_ALIGN((fs_size * 3) / 20); /* 15% */ in vacuum_necessary()
103 if (keep_free > DEFAULT_KEEP_FREE_UPPER) in vacuum_necessary()
104 keep_free = DEFAULT_KEEP_FREE_UPPER; in vacuum_necessary()
106 keep_free = DEFAULT_KEEP_FREE; in vacuum_necessary()
108 keep_free = PAGE_ALIGN(keep_free); in vacuum_necessary()
110 if (keep_free > 0 && fs_free < keep_free) in vacuum_necessary()
116 int coredump_vacuum(int exclude_fd, uint64_t keep_free, uint64_t max_use) { in coredump_vacuum() argument
121 if (keep_free == 0 && max_use == 0) in coredump_vacuum()
[all …]
Dcoredump-vacuum.h7 int coredump_vacuum(int exclude_fd, uint64_t keep_free, uint64_t max_use);
/systemd-251/src/journal/
Djournald-gperf.gperf34 ….SystemKeepFree, config_parse_iec_uint64, 0, offsetof(Server, system_storage.metrics.keep_free)
38 …RuntimeKeepFree, config_parse_iec_uint64, 0, offsetof(Server, runtime_storage.metrics.keep_free)
Djournald-server.c158 avail = LESS_BY(vfs_avail, metrics->keep_free); in cache_space_refresh()
226 "DISK_KEEP_FREE=%"PRIu64, metrics->keep_free, in server_space_usage_message()
227 "DISK_KEEP_FREE_PRETTY=%s", FORMAT_BYTES(metrics->keep_free), in server_space_usage_message()
/systemd-251/src/libsystemd/sd-journal/
Djournal-file.h28 uint64_t keep_free; /* how much to keep free on disk */ member
Djournal-file.c562 if (new_size > f->metrics.min_size && f->metrics.keep_free > 0) { in journal_file_allocate()
568 … available = LESS_BY((uint64_t) svfs.f_bfree * (uint64_t) svfs.f_bsize, f->metrics.keep_free); in journal_file_allocate()
3402 if (m->keep_free == UINT64_MAX) { in journal_default_metrics()
3404 m->keep_free = MIN(PAGE_ALIGN(fs_size / 20), /* 5% of file system size */ in journal_default_metrics()
3407 m->keep_free = DEFAULT_KEEP_FREE; in journal_default_metrics()
3418 FORMAT_BYTES(m->keep_free), in journal_default_metrics()
3846 .keep_free = UINT64_MAX, in journal_reset_metrics()