2
.\" Title: sd_journal_get_usage
3
.\" Author: Lennart Poettering <lennart@poettering.net>
4
.\" Generator: DocBook XSL Stylesheets v1.77.1 <http://docbook.sf.net/>
6
.\" Manual: sd_journal_get_usage
10
.TH "SD_JOURNAL_GET_USAGE" "3" "" "systemd" "sd_journal_get_usage"
11
.\" -----------------------------------------------------------------
12
.\" * Define some portability stuff
13
.\" -----------------------------------------------------------------
14
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15
.\" http://bugs.debian.org/507673
16
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20
.\" -----------------------------------------------------------------
21
.\" * set default formatting
22
.\" -----------------------------------------------------------------
23
.\" disable hyphenation
25
.\" disable justification (adjust text to left margin only)
27
.\" -----------------------------------------------------------------
28
.\" * MAIN CONTENT STARTS HERE *
29
.\" -----------------------------------------------------------------
31
sd_journal_get_usage \- Journal disk usage
36
#include <systemd/sd\-journal\&.h>
39
.HP \w'int\ sd_journal_get_usage('u
40
.BI "int sd_journal_get_usage(sd_journal*\ " "j" ", uint64_t*\ " "bytes" ");"
43
\fBsd_journal_get_usage()\fR
44
determines the total disk space currently used up by journal files\&. If
46
has been passed when opening the journal files this value will only reflect the size of journal files of the local host, otherwise of all hosts\&.
49
\fBsd_journal_get_usage()\fR
50
returns 0 on success or a negative errno\-style error code\&.
54
\fBsd_journal_get_usage()\fR
55
interface is available as shared library, which can be compiled and linked to with the
64
\fBsd_journal_open\fR(3),