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       The sd_journal_get_usage() interface is available as a shared library,
25       which can be compiled and linked to with the libsystemd pkg-config(1)
26       file.
27

SEE ALSO

29       systemd(1), sd-journal(3), sd_journal_open(3),
30
31
32
33systemd 219                                            SD_JOURNAL_GET_USAGE(3)
Impressum