~ubuntu-branches/ubuntu/trusty/systemd/trusty

« back to all changes in this revision

Viewing changes to man/sd_journal_get_usage.3

Tags: upstream-202
ImportĀ upstreamĀ versionĀ 202

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
'\" t
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/>
5
 
.\"      Date: 03/07/2013
6
 
.\"    Manual: sd_journal_get_usage
7
 
.\"    Source: systemd
8
 
.\"  Language: English
9
 
.\"
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
 
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18
 
.ie \n(.g .ds Aq \(aq
19
 
.el       .ds Aq '
20
 
.\" -----------------------------------------------------------------
21
 
.\" * set default formatting
22
 
.\" -----------------------------------------------------------------
23
 
.\" disable hyphenation
24
 
.nh
25
 
.\" disable justification (adjust text to left margin only)
26
 
.ad l
27
 
.\" -----------------------------------------------------------------
28
 
.\" * MAIN CONTENT STARTS HERE *
29
 
.\" -----------------------------------------------------------------
30
 
.SH "NAME"
31
 
sd_journal_get_usage \- Journal disk usage
32
 
.SH "SYNOPSIS"
33
 
.sp
34
 
.ft B
35
 
.nf
36
 
#include <systemd/sd\-journal\&.h>
37
 
.fi
38
 
.ft
39
 
.HP \w'int\ sd_journal_get_usage('u
40
 
.BI "int sd_journal_get_usage(sd_journal*\ " "j" ", uint64_t*\ " "bytes" ");"
41
 
.SH "DESCRIPTION"
42
 
.PP
43
 
\fBsd_journal_get_usage()\fR
44
 
determines the total disk space currently used up by journal files\&. If
45
 
SD_JOURNAL_LOCAL_ONLY
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\&.
47
 
.SH "RETURN VALUE"
48
 
.PP
49
 
\fBsd_journal_get_usage()\fR
50
 
returns 0 on success or a negative errno\-style error code\&.
51
 
.SH "NOTES"
52
 
.PP
53
 
The
54
 
\fBsd_journal_get_usage()\fR
55
 
interface is available as shared library, which can be compiled and linked to with the
56
 
libsystemd\-journal
57
 
\fBpkg-config\fR(1)
58
 
file\&.
59
 
.SH "SEE ALSO"
60
 
.PP
61
 
 
62
 
\fBsystemd\fR(1),
63
 
\fBsd-journal\fR(3),
64
 
\fBsd_journal_open\fR(3),