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 thread
25       may operate on a given sd_journal object.
26
27       These APIs are implemented as a shared library, which can be compiled
28       and linked to with the libsystemd pkg-config(1) file.
29

SEE ALSO

31       systemd(1), sd-journal(3), sd_journal_open(3),
32
33
34
35systemd 239                                            SD_JOURNAL_GET_USAGE(3)
Impressum