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       These APIs are implemented as a shared library, which can be compiled
33       and linked to with the libsystemd pkg-config(1) file.
34

SEE ALSO

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