]> err.no Git - systemd/log
systemd
12 years agodbus: more efficient implementation of properties
Michal Schmidt [Sun, 15 Jan 2012 23:23:59 +0000 (00:23 +0100)]
dbus: more efficient implementation of properties

The way the various properties[] arrays are initialized is inefficient:
 - only the .data members change at runtime, yet the whole arrays of
   properties with all the fields are constructed on the stack one by
   one by the code.
 - there's duplication, eg. the properties of "org.freedesktop.systemd1.Unit"
   are repeated in several unit types.

Fix it by moving the information about properties into static const
sections. Instead of storing the .data directly in the property, store
a constant offset from a run-time base.
The small arrays of struct BusBoundProperties bind together the constant
information with the right runtime information (the base pointer).

On my system the code shrinks by 60 KB, data increases by 10 KB.

12 years agounit: use safe downcasts, remove pointless casts
Michal Schmidt [Sun, 15 Jan 2012 11:37:16 +0000 (12:37 +0100)]
unit: use safe downcasts, remove pointless casts

Always use the macros for downcasting.
Remove a few obviously pointless casts.

12 years agounit: use the UNIT() macro consistently
Michal Schmidt [Sun, 15 Jan 2012 11:25:20 +0000 (12:25 +0100)]
unit: use the UNIT() macro consistently

The UNIT() macro upcasts from specific unit types to the base Unit.
Use it everywhere, rather than accessing the 'meta' member directly.

12 years agounit: remove union Unit
Michal Schmidt [Sun, 15 Jan 2012 11:04:08 +0000 (12:04 +0100)]
unit: remove union Unit

Now that objects of all unit types are allocated the exact amount of
memory they need, the Unit union has lost its purpose. Remove it.

"Unit" is a more natural name for the base unit class than "Meta", so
rename Meta to Unit.

Access to members of the base class gets simplified.

12 years agounit: reduce heap usage for unit objects
Michal Schmidt [Sun, 15 Jan 2012 09:53:49 +0000 (10:53 +0100)]
unit: reduce heap usage for unit objects

The storage of the unit objects on the heap is currently not very
efficient. For every unit object we allocate a chunk of memory as large
as the biggest unit type, although there are significant differences in
the units' real requirements.
pahole shows the following sizes of structs:
488  Target
496  Snapshot
512  Device
528  Path
560  Timer
576  Automount
1080 Socket
1160 Swap
1168 Service
1280 Mount

Usually there aren't many targets or snapshots in the system, but Device
is one of the most common unit types and for every one we waste
1280 - 512 = 768 bytes.

Fix it by allocating only the right amount for the given unit type.
On my machine (x86_64, with 39 LVM volumes) this decreases systemd's
USS (unique set size) by more than 300 KB.

12 years agologind: downgrade login message to debug
Michal Schmidt [Mon, 16 Jan 2012 12:18:17 +0000 (13:18 +0100)]
logind: downgrade login message to debug

The messages make people nervous.

https://bugzilla.redhat.com/show_bug.cgi?id=727315

12 years agojournal: drop privileges when storing coredump
Lennart Poettering [Sat, 14 Jan 2012 02:37:32 +0000 (03:37 +0100)]
journal: drop privileges when storing coredump

12 years agojournal: when show blob data show length
Lennart Poettering [Sat, 14 Jan 2012 02:07:47 +0000 (03:07 +0100)]
journal: when show blob data show length

12 years agoutil: support formatting eta and peta bytes with format_bytes()
Lennart Poettering [Sat, 14 Jan 2012 02:07:29 +0000 (03:07 +0100)]
util: support formatting eta and peta bytes with format_bytes()

12 years agoutil: introduce FORMAT_BYTES_MAX
Lennart Poettering [Sat, 14 Jan 2012 02:06:57 +0000 (03:06 +0100)]
util: introduce FORMAT_BYTES_MAX

12 years agojournal: collect coredump up to 24M in size
Lennart Poettering [Sat, 14 Jan 2012 02:05:34 +0000 (03:05 +0100)]
journal: collect coredump up to 24M in size

12 years agojournal: handle empty syslog identifier properly
Lennart Poettering [Sat, 14 Jan 2012 00:54:02 +0000 (01:54 +0100)]
journal: handle empty syslog identifier properly

12 years agojournal: fix bad memory access
Lennart Poettering [Sat, 14 Jan 2012 00:53:47 +0000 (01:53 +0100)]
journal: fix bad memory access

12 years agojournal: if the data to be sent is larger than the maximum datagram size resort to...
Lennart Poettering [Sat, 14 Jan 2012 00:53:20 +0000 (01:53 +0100)]
journal: if the data to be sent is larger than the maximum datagram size resort to passing a temporary fd over native protocol

12 years agojournal: hook up coredumping with journal
Lennart Poettering [Fri, 13 Jan 2012 23:37:35 +0000 (00:37 +0100)]
journal: hook up coredumping with journal

12 years agojournal: add new system-cat tool as kind of a more powerfull BSD logger
Lennart Poettering [Fri, 13 Jan 2012 22:17:54 +0000 (23:17 +0100)]
journal: add new system-cat tool as kind of a more powerfull BSD logger

12 years agoutil: split out tty_is_vc_resolve() from default_term_for_tty()
Lennart Poettering [Fri, 13 Jan 2012 20:56:28 +0000 (21:56 +0100)]
util: split out tty_is_vc_resolve() from default_term_for_tty()

12 years agoutil: rework ANSI escape code macros
Lennart Poettering [Fri, 13 Jan 2012 20:56:09 +0000 (21:56 +0100)]
util: rework ANSI escape code macros

12 years agomount: fix quota
Michal Schmidt [Fri, 13 Jan 2012 22:55:28 +0000 (23:55 +0100)]
mount: fix quota

quotacheck.service and quotaon.service were not pulled in for fstab mounts.
Fix it by not clearing the default_dependencies flag.

The root filesystem may have quotas too, so don't check for "/" there.

No need to have duplicate code for adding dependencies on umount.target.

https://bugzilla.redhat.com/show_bug.cgi?id=773431

12 years agopam: fix build
Lennart Poettering [Fri, 13 Jan 2012 19:52:45 +0000 (20:52 +0100)]
pam: fix build

12 years agopam: work correctly if a seat is specified but not vtnr
Lennart Poettering [Fri, 13 Jan 2012 19:51:58 +0000 (20:51 +0100)]
pam: work correctly if a seat is specified but not vtnr

12 years agojournal: add output mode that just prints simple messages without any decorations
Lennart Poettering [Fri, 13 Jan 2012 01:58:45 +0000 (02:58 +0100)]
journal: add output mode that just prints simple messages without any decorations

12 years agoapi: add C++ guards to all headers
Lennart Poettering [Thu, 12 Jan 2012 23:49:21 +0000 (00:49 +0100)]
api: add C++ guards to all headers

12 years agosd-login: teach sd_pid_get_unit() proper handling of instantiated services
Lennart Poettering [Thu, 12 Jan 2012 23:49:02 +0000 (00:49 +0100)]
sd-login: teach sd_pid_get_unit() proper handling of instantiated services

12 years agojournal: if the syslog forwarder socket is full, then don't block
Lennart Poettering [Thu, 12 Jan 2012 04:09:24 +0000 (05:09 +0100)]
journal: if the syslog forwarder socket is full, then don't block

12 years agocore: switch all log targets to go directly to the journal, instead via syslog
Lennart Poettering [Thu, 12 Jan 2012 04:09:06 +0000 (05:09 +0100)]
core: switch all log targets to go directly to the journal, instead via syslog

12 years agounits: make sure syslog socket goes away early during shutdown
Lennart Poettering [Thu, 12 Jan 2012 03:34:50 +0000 (04:34 +0100)]
units: make sure syslog socket goes away early during shutdown

12 years agolog: make internal log api log directly to the journal
Lennart Poettering [Thu, 12 Jan 2012 03:34:31 +0000 (04:34 +0100)]
log: make internal log api log directly to the journal

12 years agojournal: add SELinux context to all logged messages
Lennart Poettering [Wed, 11 Jan 2012 21:45:05 +0000 (22:45 +0100)]
journal: add SELinux context to all logged messages

12 years agojournal: fix more 32/64 bit issues
Lennart Poettering [Wed, 11 Jan 2012 21:44:43 +0000 (22:44 +0100)]
journal: fix more 32/64 bit issues

12 years agotmpfiles: fix parsing of /proc/net/unix on 32Bit machines
Lennart Poettering [Wed, 11 Jan 2012 21:07:35 +0000 (22:07 +0100)]
tmpfiles: fix parsing of /proc/net/unix on 32Bit machines

Tracked down by Michael Meeks

12 years agologs-show: fix missing newline in short output
Michal Schmidt [Tue, 10 Jan 2012 21:03:49 +0000 (22:03 +0100)]
logs-show: fix missing newline in short output

Ellipsized messages were printed without a newline.

12 years agojournald: don't assume size_t and uint64_t are the same
Lennart Poettering [Wed, 11 Jan 2012 20:24:02 +0000 (21:24 +0100)]
journald: don't assume size_t and uint64_t are the same

12 years agojournald: set group ownership of journal files to 'adm' by default
Lennart Poettering [Wed, 11 Jan 2012 20:11:58 +0000 (21:11 +0100)]
journald: set group ownership of journal files to 'adm' by default

12 years agojournal: make requirement for ACLs optional
Lennart Poettering [Wed, 11 Jan 2012 19:40:01 +0000 (20:40 +0100)]
journal: make requirement for ACLs optional

12 years agojournalctl: fix --help text
Lennart Poettering [Wed, 11 Jan 2012 15:03:42 +0000 (16:03 +0100)]
journalctl: fix --help text

12 years agobuild-sys: fix upload rule for xz v38
Lennart Poettering [Wed, 11 Jan 2012 03:01:50 +0000 (04:01 +0100)]
build-sys: fix upload rule for xz

12 years agobuild-sys: bump version
Lennart Poettering [Wed, 11 Jan 2012 02:56:35 +0000 (03:56 +0100)]
build-sys: bump version

12 years agojournal: don't realign window twice
Lennart Poettering [Wed, 11 Jan 2012 02:55:24 +0000 (03:55 +0100)]
journal: don't realign window twice

12 years agosd-journal: implement a number of non-implemented calls from the API for now
Lennart Poettering [Wed, 11 Jan 2012 02:23:04 +0000 (03:23 +0100)]
sd-journal: implement a number of non-implemented calls from the API for now

12 years agosystemd: reconnect to syslog as soon as the journal is fully up
Lennart Poettering [Wed, 11 Jan 2012 02:16:24 +0000 (03:16 +0100)]
systemd: reconnect to syslog as soon as the journal is fully up

12 years agojournalctl: always show monotonic timestamp even if it's from an old boot
Lennart Poettering [Wed, 11 Jan 2012 02:02:10 +0000 (03:02 +0100)]
journalctl: always show monotonic timestamp even if it's from an old boot

12 years agoUpdate TODO
Lennart Poettering [Wed, 11 Jan 2012 01:58:14 +0000 (02:58 +0100)]
Update TODO

12 years agounit: implement new PropagateReloadTo=/PropagateReloadFrom= operations
Lennart Poettering [Wed, 11 Jan 2012 01:47:14 +0000 (02:47 +0100)]
unit: implement new PropagateReloadTo=/PropagateReloadFrom= operations

12 years agoshutdown: add link to root storage daemon text
Lennart Poettering [Wed, 11 Jan 2012 00:51:52 +0000 (01:51 +0100)]
shutdown: add link to root storage daemon text

12 years agoservice: brutally slaughter processes that are running in the cgroup when we enter...
Lennart Poettering [Wed, 11 Jan 2012 00:51:32 +0000 (01:51 +0100)]
service: brutally slaughter processes that are running in the cgroup when we enter START_PRE and START

12 years agoupdate TODO
Lennart Poettering [Wed, 11 Jan 2012 01:51:40 +0000 (02:51 +0100)]
update TODO

12 years agobuild-sys: link systemctl and systemd-journalctl against libsystemd-id128
Michael Biebl [Tue, 10 Jan 2012 06:26:30 +0000 (07:26 +0100)]
build-sys: link systemctl and systemd-journalctl against libsystemd-id128

Both use logs-show.c which requires libsystemd-id128 for
sd_id128_to_string ().

12 years agoshutdown: exclude processes with argv[0][0] from killing
Lennart Poettering [Tue, 10 Jan 2012 03:20:55 +0000 (04:20 +0100)]
shutdown: exclude processes with argv[0][0] from killing

12 years agoautogen.sh: diet and sync with udev and kmod
Kay Sievers [Mon, 9 Jan 2012 22:14:03 +0000 (23:14 +0100)]
autogen.sh: diet and sync with udev and kmod

12 years agojournalctl: display source timestamp, not journald timestamp, if known
Lennart Poettering [Sat, 7 Jan 2012 04:00:28 +0000 (05:00 +0100)]
journalctl: display source timestamp, not journald timestamp, if known

12 years agojournalctl: add new short-monotonic output mode
Lennart Poettering [Sat, 7 Jan 2012 03:41:30 +0000 (04:41 +0100)]
journalctl: add new short-monotonic output mode

12 years agojournald: add kmsg source
Lennart Poettering [Sat, 7 Jan 2012 03:09:59 +0000 (04:09 +0100)]
journald: add kmsg source

12 years agojournald: remove inner loop debug message
Lennart Poettering [Sat, 7 Jan 2012 00:42:13 +0000 (01:42 +0100)]
journald: remove inner loop debug message

12 years agofix compiler warning
Kay Sievers [Sat, 7 Jan 2012 01:12:43 +0000 (02:12 +0100)]
fix compiler warning

12 years agosd-id128: let's make our API a bit smaller, since sd_id128_make_v4_uuid() is dispensable
Lennart Poettering [Sat, 7 Jan 2012 00:37:39 +0000 (01:37 +0100)]
sd-id128: let's make our API a bit smaller, since sd_id128_make_v4_uuid() is dispensable

12 years agojournalctl: rename --new-id to --new-id128 in order not to introduce yet another...
Lennart Poettering [Sat, 7 Jan 2012 00:37:15 +0000 (01:37 +0100)]
journalctl: rename --new-id to --new-id128 in order not to introduce yet another new name

12 years agobuild-sys: move .pc files next to the matching sources
Lennart Poettering [Sat, 7 Jan 2012 00:36:36 +0000 (01:36 +0100)]
build-sys: move .pc files next to the matching sources

12 years agoload-fragment: fix parsing of Socket= setting
Lennart Poettering [Sat, 7 Jan 2012 00:21:40 +0000 (01:21 +0100)]
load-fragment: fix parsing of Socket= setting

12 years agomain: fix spelling
Lennart Poettering [Fri, 6 Jan 2012 23:59:15 +0000 (00:59 +0100)]
main: fix spelling

12 years agojournald: introduce systemd_journald.forward_to_kmsg=1 (and friends) to enable kmsg...
Lennart Poettering [Fri, 6 Jan 2012 23:59:00 +0000 (00:59 +0100)]
journald: introduce systemd_journald.forward_to_kmsg=1 (and friends) to enable kmsg forwarding globally via kernel cmdline

12 years agojournald: start journald right away, don't wait until activation
Lennart Poettering [Fri, 6 Jan 2012 23:22:37 +0000 (00:22 +0100)]
journald: start journald right away, don't wait until activation

12 years agobuild-sys: fix typo in help string
Michael Biebl [Fri, 6 Jan 2012 23:36:35 +0000 (00:36 +0100)]
build-sys: fix typo in help string

12 years agojournald: shorten the time we wait for a forwarding syslog
Lennart Poettering [Fri, 6 Jan 2012 22:11:28 +0000 (23:11 +0100)]
journald: shorten the time we wait for a forwarding syslog

12 years agounit: properly update references to units which are merged
Lennart Poettering [Fri, 6 Jan 2012 22:08:54 +0000 (23:08 +0100)]
unit: properly update references to units which are merged

When we merge units that some kind of object points to, those pointers
might become invalidated, and needs to be updated. Introduce a UnitRef
struct which links up all the unit references, to ensure corrected
references.

At the same time, drop configured_sockets in the Service object, and
replace it by proper UNIT_TRIGGERS resp. UNIT_TRIGGERED_BY dependencies,
which allow us to simplify a lot of code.

12 years agoservice: add dependencies on configured sockets
Lennart Poettering [Fri, 6 Jan 2012 18:23:03 +0000 (19:23 +0100)]
service: add dependencies on configured sockets

12 years agounits: remove left-over unit file
Lennart Poettering [Fri, 6 Jan 2012 02:20:22 +0000 (03:20 +0100)]
units: remove left-over unit file

12 years agojournald: start the journal after the syslog socket, so that the syslog socket queues...
Lennart Poettering [Fri, 6 Jan 2012 02:11:56 +0000 (03:11 +0100)]
journald: start the journal after the syslog socket, so that the syslog socket queues syslog messages from early boot on

12 years agokmsg-syslogd: remove kmsg-syslogd, since it's entirely obsoleted and replaced by...
Lennart Poettering [Fri, 6 Jan 2012 02:11:17 +0000 (03:11 +0100)]
kmsg-syslogd: remove kmsg-syslogd, since it's entirely obsoleted and replaced by journald

12 years agospecial: fix name of journal socket unit
Lennart Poettering [Thu, 5 Jan 2012 22:55:01 +0000 (23:55 +0100)]
special: fix name of journal socket unit

12 years agojournal: introduce log target 'journal' for executed processes
Lennart Poettering [Thu, 5 Jan 2012 22:54:45 +0000 (23:54 +0100)]
journal: introduce log target 'journal' for executed processes

12 years agostdout: remove stdout-syslog-bridge since it is now obsoleted by journald
Lennart Poettering [Thu, 5 Jan 2012 22:54:11 +0000 (23:54 +0100)]
stdout: remove stdout-syslog-bridge since it is now obsoleted by journald

12 years agoutil: switch the console to text mode on reset
Michal Schmidt [Fri, 6 Jan 2012 00:32:34 +0000 (01:32 +0100)]
util: switch the console to text mode on reset

In case we're taking over the console after a killed X server.

https://bugzilla.redhat.com/show_bug.cgi?id=771563

12 years agoutil: fix switching to console unicode mode
Michal Schmidt [Fri, 6 Jan 2012 00:28:30 +0000 (01:28 +0100)]
util: fix switching to console unicode mode

The KDSKBMODE ioctl wants a value directly, not its address.

12 years agologin: implement sd_session_get_service()
Lennart Poettering [Thu, 5 Jan 2012 22:14:22 +0000 (23:14 +0100)]
login: implement sd_session_get_service()

12 years agojournal: rename syslog tag to identifier since that's what we call it on the server...
Lennart Poettering [Thu, 5 Jan 2012 20:43:49 +0000 (21:43 +0100)]
journal: rename syslog tag to identifier since that's what we call it on the server side.

12 years agojournal: rename priority_prefix to level_prefix, since that's how we call it in PID 1
Lennart Poettering [Thu, 5 Jan 2012 20:39:59 +0000 (21:39 +0100)]
journal: rename priority_prefix to level_prefix, since that's how we call it in PID 1

12 years agosd-journal: close reading side of sd_journal_stream_fd() file descriptors
Lennart Poettering [Thu, 5 Jan 2012 20:39:31 +0000 (21:39 +0100)]
sd-journal: close reading side of sd_journal_stream_fd() file descriptors

12 years agoexecute: talk directly to the journald, instead to the stdout-syslog-bridge
Lennart Poettering [Thu, 5 Jan 2012 20:39:08 +0000 (21:39 +0100)]
execute: talk directly to the journald, instead to the stdout-syslog-bridge

12 years agojournal: store used transport in journal
Lennart Poettering [Thu, 5 Jan 2012 19:24:34 +0000 (20:24 +0100)]
journal: store used transport in journal

12 years agojournal: move sockets into their own subdir
Lennart Poettering [Thu, 5 Jan 2012 19:24:16 +0000 (20:24 +0100)]
journal: move sockets into their own subdir

12 years agojournalctl: rework short output mode to rebuild full syslog message
Lennart Poettering [Thu, 5 Jan 2012 19:11:47 +0000 (20:11 +0100)]
journalctl: rework short output mode to rebuild full syslog message

12 years agoREADME: correct license claims
Lennart Poettering [Thu, 5 Jan 2012 17:24:18 +0000 (18:24 +0100)]
README: correct license claims

12 years agoheaders: fix git URLs for source files
Lennart Poettering [Thu, 5 Jan 2012 17:21:26 +0000 (18:21 +0100)]
headers: fix git URLs for source files

12 years agoautogen: add --with-rootlibdir= and switch /usr/local to /usr
Kay Sievers [Thu, 5 Jan 2012 16:57:02 +0000 (17:57 +0100)]
autogen: add --with-rootlibdir= and switch /usr/local to /usr

12 years agobuild-sys: add headers to EXTRA_DIST to fix 'make distcheck'
Kay Sievers [Thu, 5 Jan 2012 16:00:46 +0000 (17:00 +0100)]
build-sys: add headers to EXTRA_DIST to fix 'make distcheck'

Vala autotools, it's all your fault!

12 years agobuild-sys: drop colorgcc
Lennart Poettering [Thu, 5 Jan 2012 15:40:14 +0000 (16:40 +0100)]
build-sys: drop colorgcc

12 years agobuild-sys: add stub makefiles to subdirs
Lennart Poettering [Thu, 5 Jan 2012 15:29:21 +0000 (16:29 +0100)]
build-sys: add stub makefiles to subdirs

12 years agojournal: fix include in sd-journal.h
Lennart Poettering [Thu, 5 Jan 2012 15:28:43 +0000 (16:28 +0100)]
journal: fix include in sd-journal.h

12 years agogit: only ignore toplevel systemd file
Lennart Poettering [Thu, 5 Jan 2012 15:28:33 +0000 (16:28 +0100)]
git: only ignore toplevel systemd file

12 years agojournalctl: add --new-id switch to generate a new 128Bit id
Lennart Poettering [Thu, 5 Jan 2012 15:28:17 +0000 (16:28 +0100)]
journalctl: add --new-id switch to generate a new 128Bit id

12 years agojournal: add missing sd-messages.h
Lennart Poettering [Thu, 5 Jan 2012 15:27:38 +0000 (16:27 +0100)]
journal: add missing sd-messages.h

12 years agobuild-sys: move public header files into a dir of their own
Lennart Poettering [Thu, 5 Jan 2012 15:01:58 +0000 (16:01 +0100)]
build-sys: move public header files into a dir of their own

12 years agoutil: never ellipsize welcome message
Lennart Poettering [Thu, 5 Jan 2012 14:35:16 +0000 (15:35 +0100)]
util: never ellipsize welcome message

12 years agojournald: add configuration file options to forward all logged data to kmsg, console...
Lennart Poettering [Thu, 5 Jan 2012 14:34:13 +0000 (15:34 +0100)]
journald: add configuration file options to forward all logged data to kmsg, console, syslog

12 years agolog: minor optimization
Lennart Poettering [Thu, 5 Jan 2012 02:25:10 +0000 (03:25 +0100)]
log: minor optimization

12 years agoutil: when printing status updates during boot, take terminal width into account
Lennart Poettering [Thu, 5 Jan 2012 02:24:39 +0000 (03:24 +0100)]
util: when printing status updates during boot, take terminal width into account

12 years agobuild-sys: use ${ac_default_prefix}
Kay Sievers [Thu, 5 Jan 2012 03:10:59 +0000 (04:10 +0100)]
build-sys: use ${ac_default_prefix}

12 years agobuild-sys: add some headers to fix 'make distcheck'
Kay Sievers [Thu, 5 Jan 2012 03:00:48 +0000 (04:00 +0100)]
build-sys: add some headers to fix 'make distcheck'

12 years agobuild-sys: install pam module in $rootlibdir
Kay Sievers [Thu, 5 Jan 2012 02:51:52 +0000 (03:51 +0100)]
build-sys: install pam module in $rootlibdir