1SD_JOURNAL_GET_USAGE(3)      sd_journal_get_usage      SD_JOURNAL_GET_USAGE(3)
2
3
4

NAME

6       sd_journal_get_usage - Journal disk usage
7

SYNOPSIS

9       #include <systemd/sd-journal.h>
10
11       int sd_journal_get_usage(sd_journal *j, uint64_t *bytes);
12

DESCRIPTION

14       sd_journal_get_usage() determines the total disk space currently used
15       by journal files (in bytes). If SD_JOURNAL_LOCAL_ONLY was passed when
16       opening the journal, this value will only reflect the size of journal
17       files of the local host, otherwise of all hosts.
18

RETURN VALUE

20       sd_journal_get_usage() returns 0 on success or a negative errno-style
21       error code.
22

NOTES

24       All functions listed here are thread-agnostic and only a single
25       specific thread may operate on a given object during its entire
26       lifetime. It's safe to allocate multiple independent objects and use
27       each from a specific thread in parallel. However, it's not safe to
28       allocate such an object in one thread, and operate or free it from any
29       other, even if locking is used to ensure these threads don't operate on
30       it at the very same time.
31
32       Functions described here are available as a shared library, which can
33       be compiled against and linked to with the libsystemd pkg-config(1)
34       file.
35

SEE ALSO

37       systemd(1), sd-journal(3), sd_journal_open(3),
38
39
40
41systemd 254                                            SD_JOURNAL_GET_USAGE(3)
Impressum