chiark / gitweb /
elogind.git
6 years agoReport about syntax errors with metadata
Zbigniew Jędrzejewski-Szmek [Tue, 16 Apr 2013 02:25:58 +0000 (22:25 -0400)]
Report about syntax errors with metadata

The information about the unit for which files are being parsed
is passed all the way down. This way messages land in the journal
with proper UNIT=... or USER_UNIT=... attribution.

'systemctl status' and 'journalctl -u' not displaying those messages
has been a source of confusion for users, since the journal entry for
a misspelt setting was often logged quite a bit earlier than the
failure to start a unit.

Based-on-a-patch-by: Oleksii Shevchuk <alxchk@gmail.com>
6 years agocore: log a few more things under UNIT=...
Zbigniew Jędrzejewski-Szmek [Mon, 15 Apr 2013 05:40:44 +0000 (01:40 -0400)]
core: log a few more things under UNIT=...

6 years agocore/main: generate 4 parsing functions from a macro
Zbigniew Jędrzejewski-Szmek [Tue, 16 Apr 2013 01:33:43 +0000 (21:33 -0400)]
core/main: generate 4 parsing functions from a macro

6 years agoconf-parser: generate 7 parsing functions from a macro
Zbigniew Jędrzejewski-Szmek [Mon, 15 Apr 2013 02:29:43 +0000 (22:29 -0400)]
conf-parser: generate 7 parsing functions from a macro

Those functions were identical, apart from typos. Log message
is modified to contain the type of destination var (int, double,
...). I think this might make it easier to understand why a value
was rejected (e.g. a minus from an unsigned type).

6 years agopython-systemd: Reader return special fields and _Reader changes
Steven Hiscocks [Sun, 14 Apr 2013 19:55:08 +0000 (20:55 +0100)]
python-systemd: Reader return special fields and _Reader changes

Changes to _Reader make it match closer to C API, by removing `get_next`
and `get_previous`. A `get_all` method added, which returns dictionary
of fields using C API SD_JOURNAL_FOREACH_DATA macro, which can be used
in conjunction with `next`.

_Reader `get`, `next`, `get_{realtime,monotonic,cursor}` and new
`previous` methods are made private. This is so the traversal and
getting of journal fields can be made transparent in the python
interface.

Reader now solely implements `get_next` and `get_previous`, returning a
standard dictionary (future: other mapping types?) with all standard and
special fields through the converters. This makes the output the same as
journalctl json/export format output.

Iterator methods also moved to Reader, as they do not function as intend
with changes to _Reader.

These changes also mean that more optimised journal interfaces can be
made more easily from _Reader, by avoiding getting of unrequired fields
by using the `_get` method, and avoiding field conversions.

6 years agosystemd-python: export new sd_journal_{process,get_events,get_timeout}
Zbigniew Jędrzejewski-Szmek [Sun, 14 Apr 2013 22:37:03 +0000 (18:37 -0400)]
systemd-python: export new sd_journal_{process,get_events,get_timeout}

get_timeout_ms is added as a convenience function, since
it is abysmally hard to call clock_gettime() in Python
versions lower than 3.3. And even for Python 3.3 users
it saves a few lines.

6 years agojournal: fix off-by-one error in native message iovec counting
Michal Schmidt [Tue, 16 Apr 2013 21:07:14 +0000 (23:07 +0200)]
journal: fix off-by-one error in native message iovec counting

Thanks to Cristian Ciupitu for a reproducer.
https://bugzilla.redhat.com/show_bug.cgi?id=924359

6 years agoutil: make generation of profcs PID paths nicer
Lennart Poettering [Tue, 16 Apr 2013 12:50:05 +0000 (14:50 +0200)]
util: make generation of profcs PID paths nicer

6 years agopath-util: unify code for detecting OS trees
Lennart Poettering [Tue, 16 Apr 2013 03:47:04 +0000 (05:47 +0200)]
path-util: unify code for detecting OS trees

This also makes sure we always detect an OS tree the same way, by
checking for /etc/os-release.

6 years agomacro: rework how we define cleanup macros
Lennart Poettering [Tue, 16 Apr 2013 03:25:57 +0000 (05:25 +0200)]
macro: rework how we define cleanup macros

There's now a generic _cleanup_ macro with an argument. The macros for
specific types are now defined using this macro, and in the header files
where they belong.

All cleanup handlers are now inline functions.

6 years agoutil: replace decimal_str_max() by a typesafe macro DECIMAL_STR_WIDTH()
Lennart Poettering [Tue, 16 Apr 2013 03:04:53 +0000 (05:04 +0200)]
util: replace decimal_str_max() by a typesafe macro DECIMAL_STR_WIDTH()

DECIMAL_STR_WIDTH() now works on any numeric type, and is easier to
distingish from DECIMAL_STR_MAX().

This also replaces another manual implementaiton of ulog10 by this macro.

6 years agobus: parse unit/user unit/session from cgroup path
Lennart Poettering [Tue, 16 Apr 2013 02:54:46 +0000 (04:54 +0200)]
bus: parse unit/user unit/session from cgroup path

6 years agoupdate TODO
Lennart Poettering [Tue, 16 Apr 2013 02:41:11 +0000 (04:41 +0200)]
update TODO

6 years agonspawn: introduce the new /machine/ tree in the cgroup tree and move containers there
Lennart Poettering [Tue, 16 Apr 2013 02:36:06 +0000 (04:36 +0200)]
nspawn: introduce the new /machine/ tree in the cgroup tree and move containers there

Containers will now carry a label (normally derived from the root
directory name, but configurable by the user), and the container's root
cgroup is /machine/<label>. This label is called "machine name", and can
cover both containers and VMs (as soon as libvirt also makes use of
/machine/).

libsystemd-login can be used to query the machine name from a process.

This patch also includes numerous clean-ups for the cgroup code.

6 years agoutil: make sure result of hostname_cleanup() passes hostname_is_valid()
Lennart Poettering [Tue, 16 Apr 2013 01:57:50 +0000 (03:57 +0200)]
util: make sure result of hostname_cleanup() passes hostname_is_valid()

6 years agologind: filter configured cgroup controller lists
Lennart Poettering [Tue, 16 Apr 2013 01:54:53 +0000 (03:54 +0200)]
logind: filter configured cgroup controller lists

6 years agologind: when looking for cgroup prefixes, allocate from stack
Lennart Poettering [Tue, 16 Apr 2013 01:52:59 +0000 (03:52 +0200)]
logind: when looking for cgroup prefixes, allocate from stack

6 years agolibudev: remove udev_monitor_new_from_socket() symbol
Michael Biebl [Tue, 16 Apr 2013 00:14:45 +0000 (02:14 +0200)]
libudev: remove udev_monitor_new_from_socket() symbol

This function was removed in v183, so drop it from the symbols
versioning file.

6 years agobus: copy iteration macro from the kernel
Kay Sievers [Tue, 16 Apr 2013 00:10:55 +0000 (02:10 +0200)]
bus: copy iteration macro from the kernel

6 years agohwdb: update
Kay Sievers [Mon, 15 Apr 2013 23:45:44 +0000 (01:45 +0200)]
hwdb: update

6 years agobus: catch up with kernel changes
Kay Sievers [Mon, 15 Apr 2013 23:44:36 +0000 (01:44 +0200)]
bus: catch up with kernel changes

6 years agobootchart: put the bootchart into the journal.
Auke Kok [Mon, 15 Apr 2013 23:23:42 +0000 (16:23 -0700)]
bootchart: put the bootchart into the journal.

This bit of code is mostly stolen from coredump.c. We construct
a simple journal message and append the bootchart file in the
journal automatically.

You can extract the latest bootchart from the current boot with
something like:

$ journalctl -b MESSAGE_ID=9f26aa562cf440c2b16c773d0479b518 --field=BOOTCHART

which prints it to stdout.

None of the other logic is touched. The journal entry is created
even if bootchart was run manually, which is probably wrong.

6 years agobus: fix missing macro argument renaming
Kay Sievers [Mon, 15 Apr 2013 21:39:42 +0000 (23:39 +0200)]
bus: fix missing macro argument renaming

<fdo-vcs> systemd kay master * b1454bf src/libsystemd-bus/ bus-kernel.c kdbus.h
<fdo-vcs> systemd bus: catch up with kernel changes
<kmacleod> kay: randomly looked at your commit, it looks like in KDBUS_FOREACH_ITEM
  you missed changing a (d) to an (i) in (uint8_t*) (d) < (uint8_t*) (k) + (k)->size;  ?
<kay> kmacleod: hah, so there *is* a reason for using _foo in macros :)
<kay> kmacleod: thanks!

6 years agobus: catch up with kernel changes
Kay Sievers [Mon, 15 Apr 2013 21:32:38 +0000 (23:32 +0200)]
bus: catch up with kernel changes

6 years agoaudit: since nspawn now sets CAP_AUDIT_CONTROL for containers we cannot user this...
Lennart Poettering [Mon, 15 Apr 2013 19:55:12 +0000 (21:55 +0200)]
audit: since nspawn now sets CAP_AUDIT_CONTROL for containers we cannot user this anymore to skip audit session ID retrieval

As audit is still broken in containers we need a reliable way how we can
determine whether the audit data we read from 7proc is actually useful.
Previously we used CAP_AUDIT_CONTROL for this, since nspawn removed that
from the nspawn container. This has changed a while back however, which
means we used audit data of host system in the container.

This adds an explicit container check to the audit calls, so that all
audit data is turned off in containers.

This should fix session creation with pam_systemd/logind in nspawn containers.

6 years agocore: let's make our log messages proper sentences with full stops
Lennart Poettering [Mon, 15 Apr 2013 19:55:07 +0000 (21:55 +0200)]
core: let's make our log messages proper sentences with full stops

6 years agocore: always create /user and /machine top-level cgroup dirs
Lennart Poettering [Mon, 15 Apr 2013 19:52:56 +0000 (21:52 +0200)]
core: always create /user and /machine top-level cgroup dirs

This allows clients to put inotify watches on these trees to watch for
state changes, without having to wait until these dirs are created.

This introduces the new top-level /machine cgroup dir as canonical
location where OS containers and VMs shall be located (as discussed with
the libvirt folks).

6 years agoupdate TODO
Lennart Poettering [Mon, 15 Apr 2013 19:52:21 +0000 (21:52 +0200)]
update TODO

6 years agodo not change console to non-unicode for LANG=C
Harald Hoyer [Mon, 15 Apr 2013 16:34:53 +0000 (18:34 +0200)]
do not change console to non-unicode for LANG=C

If systemd-vconsole-setup was started with LANG=C (no locale.conf), then
it would set the console to non-unicode, which is not what we want.

6 years agoFix spelling errors using 'codespell' tool
Anatol Pomozov [Mon, 15 Apr 2013 02:37:54 +0000 (19:37 -0700)]
Fix spelling errors using 'codespell' tool

6 years agosd-login: add a sd_pid_get_user_unit() call
Lennart Poettering [Mon, 15 Apr 2013 12:16:45 +0000 (14:16 +0200)]
sd-login: add a sd_pid_get_user_unit() call

6 years agobus: handle env vars safely
Lennart Poettering [Mon, 15 Apr 2013 12:05:00 +0000 (14:05 +0200)]
bus: handle env vars safely

Make sure that our library is safe for usage in SUID programs when it
comes to env var handling

6 years agokdbus: parse cgroup meta data, too
Lennart Poettering [Sun, 14 Apr 2013 23:50:46 +0000 (01:50 +0200)]
kdbus: parse cgroup meta data, too

6 years agolocalectl: read X11 keymaps from the correct file
Lennart Poettering [Sun, 14 Apr 2013 23:30:18 +0000 (01:30 +0200)]
localectl: read X11 keymaps from the correct file

As reported by Sergey Udaltsov.

6 years agoudev/ata_id: zero out variable properly
Zbigniew Jędrzejewski-Szmek [Sun, 14 Apr 2013 22:48:45 +0000 (18:48 -0400)]
udev/ata_id: zero out variable properly

b8a2b0f76 'use initalization instead of explicit zeroing'
introduced a bug where only the first sizeof(uint_t*) bytes
would be zeroed out, instead of the whole array.

6 years agobus: remove two unused variables
Zbigniew Jędrzejewski-Szmek [Sun, 14 Apr 2013 22:42:44 +0000 (18:42 -0400)]
bus: remove two unused variables

6 years agosystemd-python: fix formatting in docstring
Zbigniew Jędrzejewski-Szmek [Sun, 14 Apr 2013 22:37:38 +0000 (18:37 -0400)]
systemd-python: fix formatting in docstring

6 years agoTODO: bootchart items.
Auke Kok [Sun, 14 Apr 2013 21:11:47 +0000 (14:11 -0700)]
TODO: bootchart items.

6 years agoreadahead: document options and commands.
Auke Kok [Sun, 14 Apr 2013 19:54:54 +0000 (12:54 -0700)]
readahead: document options and commands.

6 years agoreadahead-analyze: avoid division-by-0
Zbigniew Jędrzejewski-Szmek [Sun, 14 Apr 2013 18:29:17 +0000 (14:29 -0400)]
readahead-analyze: avoid division-by-0

Also remove a few casts and use _cleanup_fclose_ to simplify logic.

6 years agoMurmurHash3: actually inline functions
Zbigniew Jędrzejewski-Szmek [Sun, 14 Apr 2013 17:11:06 +0000 (13:11 -0400)]
MurmurHash3: actually inline functions

"__attribute__((always_inline))" does not replace "inline" and they
still need to be used together. This fixes "always_inline function
might not be inlinable [-Wattributes]" warning in gcc 4.7

Idea-from-patch-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
6 years agokdbus: generare bloom filters properly for messages we send
Lennart Poettering [Sun, 14 Apr 2013 15:49:18 +0000 (17:49 +0200)]
kdbus: generare bloom filters properly for messages we send

6 years agokdbus: update kdbus.h from upstream
Lennart Poettering [Sun, 14 Apr 2013 15:47:12 +0000 (17:47 +0200)]
kdbus: update kdbus.h from upstream

6 years agobus: always explicitly rewind read index before passing message to caller or callback
Lennart Poettering [Sun, 14 Apr 2013 15:46:41 +0000 (17:46 +0200)]
bus: always explicitly rewind read index before passing message to caller or callback

6 years agobus: fix counting of argN= matches
Lennart Poettering [Sun, 14 Apr 2013 15:45:26 +0000 (17:45 +0200)]
bus: fix counting of argN= matches

6 years agoutil: introduce alloca0() and use it at a number of places
Lennart Poettering [Sun, 14 Apr 2013 15:43:59 +0000 (17:43 +0200)]
util: introduce alloca0() and use it at a number of places

6 years agobus: zero data structure and catch up with error value change
Kay Sievers [Sun, 14 Apr 2013 14:28:34 +0000 (16:28 +0200)]
bus: zero data structure and catch up with error value change

6 years agokdbus: also parse cmdline message attribute
Lennart Poettering [Sun, 14 Apr 2013 01:20:12 +0000 (03:20 +0200)]
kdbus: also parse cmdline message attribute

6 years agokdbus: make name acquirement ioctls valgrind clean
Lennart Poettering [Sun, 14 Apr 2013 01:19:51 +0000 (03:19 +0200)]
kdbus: make name acquirement ioctls valgrind clean

6 years agoInclude <fcntl.h> instead of <sys/fcntl.h>
Zbigniew Jędrzejewski-Szmek [Sun, 14 Apr 2013 01:02:03 +0000 (21:02 -0400)]
Include <fcntl.h> instead of <sys/fcntl.h>

<fcntl.h> is POSIX. On Linux, <sys/fcntl.h> simply includes
<fcntl.h>, so there should be on difference. On Android
likewise, except that there is some more stuff. QNX has
only <fcntl.h>.

https://bugs.freedesktop.org/show_bug.cgi?id=63423

6 years agofileio: in envfiles, do not skip lines following empty lines
Zbigniew Jędrzejewski-Szmek [Sun, 14 Apr 2013 00:22:53 +0000 (20:22 -0400)]
fileio: in envfiles, do not skip lines following empty lines

https://bugs.freedesktop.org/show_bug.cgi?id=63477

6 years agoRemove a few NULLs
Zbigniew Jędrzejewski-Szmek [Fri, 12 Apr 2013 23:19:48 +0000 (19:19 -0400)]
Remove a few NULLs

Just {} is used in a lot of places now, and there's nothing
special abose those few.

6 years agokdbus: parse even more kernel meta data fields
Lennart Poettering [Sat, 13 Apr 2013 19:53:11 +0000 (21:53 +0200)]
kdbus: parse even more kernel meta data fields

6 years agokdbus: update to newest kdbus API
Lennart Poettering [Sat, 13 Apr 2013 18:12:27 +0000 (20:12 +0200)]
kdbus: update to newest kdbus API

6 years agojournal: fix broken tags _SOURCE_REALTIME_TIMESTAMP and _MACHINE_ID
Mirco Tischler [Fri, 12 Apr 2013 23:03:49 +0000 (01:03 +0200)]
journal: fix broken tags _SOURCE_REALTIME_TIMESTAMP and _MACHINE_ID

6 years agosystemctl: new verb 'list-sockets'
Zbigniew Jędrzejewski-Szmek [Thu, 11 Apr 2013 22:59:18 +0000 (18:59 -0400)]
systemctl: new verb 'list-sockets'

LISTEN           UNIT                            ACTIVATES
/dev/initctl     systemd-initctl.socket          systemd-initctl.service
/dev/log         systemd-journald.socket         systemd-journald.service
...
[::]:19531       systemd-journal-gatewayd.socket systemd-journal-gatewayd.service
kobject-uevent 1 systemd-udevd-kernel.socket     systemd-udevd.service

17 sockets listed.
Pass --all to see loaded but inactive sockets, too.

6 years agoutil: add wrapper for realloc to avoid specyfing type
Zbigniew Jędrzejewski-Szmek [Thu, 11 Apr 2013 22:58:45 +0000 (18:58 -0400)]
util: add wrapper for realloc to avoid specyfing type

6 years agokdbus: make our little test pass cleanly again
Lennart Poettering [Fri, 12 Apr 2013 20:51:23 +0000 (22:51 +0200)]
kdbus: make our little test pass cleanly again

6 years agokbdus: add null bloom filter to our messages
Lennart Poettering [Fri, 12 Apr 2013 20:48:34 +0000 (22:48 +0200)]
kbdus: add null bloom filter to our messages

This makes things work again with the requirements of the kernel on
bloom filters.

6 years agokdbus: use a valid service name for testing
Lennart Poettering [Fri, 12 Apr 2013 19:45:14 +0000 (21:45 +0200)]
kdbus: use a valid service name for testing

6 years agokdbus: update kdbus.h from upstream
Lennart Poettering [Fri, 12 Apr 2013 19:44:55 +0000 (21:44 +0200)]
kdbus: update kdbus.h from upstream

6 years agokdbus: make sure msg structure is properly initialized
Lennart Poettering [Fri, 12 Apr 2013 19:44:14 +0000 (21:44 +0200)]
kdbus: make sure msg structure is properly initialized

6 years agobus: don't calculate kmsg message too large
Lennart Poettering [Fri, 12 Apr 2013 19:43:50 +0000 (21:43 +0200)]
bus: don't calculate kmsg message too large

6 years agobus: add kdbus test for name registry
Lennart Poettering [Fri, 12 Apr 2013 18:17:15 +0000 (20:17 +0200)]
bus: add kdbus test for name registry

6 years agodbus: fill in kdbus sender+destination from kdbus data
Lennart Poettering [Fri, 12 Apr 2013 18:17:00 +0000 (20:17 +0200)]
dbus: fill in kdbus sender+destination from kdbus data

6 years agobus: rename KDBUS_CMD_FNAME_POLICY_NONE -> KDBUS_CMD_FNAME_POLICY_OPEN
Kay Sievers [Fri, 12 Apr 2013 19:04:02 +0000 (21:04 +0200)]
bus: rename KDBUS_CMD_FNAME_POLICY_NONE -> KDBUS_CMD_FNAME_POLICY_OPEN

6 years agobus: test - re-enable check for returned error
Kay Sievers [Fri, 12 Apr 2013 18:32:19 +0000 (20:32 +0200)]
bus: test - re-enable check for returned error

6 years agobus: align the buffer we pass to the kernel
Kay Sievers [Fri, 12 Apr 2013 18:08:28 +0000 (20:08 +0200)]
bus: align the buffer we pass to the kernel

6 years agobus: create kdbus bus without an active policy
Kay Sievers [Fri, 12 Apr 2013 14:45:37 +0000 (16:45 +0200)]
bus: create kdbus bus without an active policy

6 years agobus: implement basic name registration with kdbus
Lennart Poettering [Fri, 12 Apr 2013 01:08:14 +0000 (03:08 +0200)]
bus: implement basic name registration with kdbus

6 years agotmpfiles: create static device nodes before udev is started
Tom Gundersen [Thu, 11 Apr 2013 19:14:40 +0000 (21:14 +0200)]
tmpfiles: create static device nodes before udev is started

Since v183, the contents of /usr/lib/udev/devices is no longer copied to /dev
on boot, rather systemd-tmpfiles should be used instead. However, as
systemd-tmpfiles --create is only ran long after udevd has been started, it is
no longer possible to use udev rules to assign permissions to the static nodes.

This calls systemd-tmpfiles --create early, before udev is started, and
restricts the call to /dev, which is known to be mounted already.

In the future, this could also take over the creation of static device nodes
from systemd-udevd.

6 years agobus: be nice to people who don't have kdbus in their kernels
Lennart Poettering [Fri, 12 Apr 2013 00:24:28 +0000 (02:24 +0200)]
bus: be nice to people who don't have kdbus in their kernels

6 years agobus: make sure things still compile fine without valgrind's headers installed
Lennart Poettering [Fri, 12 Apr 2013 00:21:57 +0000 (02:21 +0200)]
bus: make sure things still compile fine without valgrind's headers installed

6 years agobus: make the kdbus code valgrind clean
Lennart Poettering [Fri, 12 Apr 2013 00:19:26 +0000 (02:19 +0200)]
bus: make the kdbus code valgrind clean

6 years agobus: parse and expose kdbus message timestamps
Lennart Poettering [Thu, 11 Apr 2013 23:57:53 +0000 (01:57 +0200)]
bus: parse and expose kdbus message timestamps

6 years agobus: also parse PID starttime out of kdbus message
Lennart Poettering [Thu, 11 Apr 2013 23:49:52 +0000 (01:49 +0200)]
bus: also parse PID starttime out of kdbus message

6 years agobus: parse uid/gid/pid/tid meta data from kdbus messages
Lennart Poettering [Thu, 11 Apr 2013 23:45:18 +0000 (01:45 +0200)]
bus: parse uid/gid/pid/tid meta data from kdbus messages

6 years agobus: make kdbus work so that we can exchange real messages
Lennart Poettering [Thu, 11 Apr 2013 23:16:40 +0000 (01:16 +0200)]
bus: make kdbus work so that we can exchange real messages

We have ignition, we have tremendous fire!

6 years agohwclock: use _cleanup_ to simplify function
Zbigniew Jędrzejewski-Szmek [Thu, 11 Apr 2013 23:02:37 +0000 (19:02 -0400)]
hwclock: use _cleanup_ to simplify function

6 years agoerrno is positive
Zbigniew Jędrzejewski-Szmek [Thu, 11 Apr 2013 22:57:42 +0000 (18:57 -0400)]
errno is positive

Make sure we compare errno against positive error codes.
The ones in hwclock.c and install.c can have an impact, the
rest are unlikely to be hit or in code that isn't widely
used.

Also check that errno > 0, to help gcc know that we are
returning a negative error code.

6 years agosystemctl: show the name of failing unit in red
Zbigniew Jędrzejewski-Szmek [Thu, 11 Apr 2013 22:11:47 +0000 (18:11 -0400)]
systemctl: show the name of failing unit in red

It makes it easier to pick out problematic unit
names from a long list.

6 years agosystemctl: allow multiple arguments to --type
Zbigniew Jędrzejewski-Szmek [Thu, 11 Apr 2013 02:40:58 +0000 (22:40 -0400)]
systemctl: allow multiple arguments to --type

This mirrors --property, and is generally useful.

New functionality is used in bash completion.

In case of zsh completion, new functionality is less useful
because of caching. Nevertheless, zsh completion for restart
is made to behave more-or-less the same as bash completion.
At least sockets can be restarted.

6 years agobus: fix formatting of bus address
Lennart Poettering [Thu, 11 Apr 2013 22:43:57 +0000 (00:43 +0200)]
bus: fix formatting of bus address

6 years agobus: fix kdbus ioctl invocation
Lennart Poettering [Thu, 11 Apr 2013 22:43:42 +0000 (00:43 +0200)]
bus: fix kdbus ioctl invocation

6 years agobus: properly check if kdbus connection worked
Lennart Poettering [Thu, 11 Apr 2013 22:43:29 +0000 (00:43 +0200)]
bus: properly check if kdbus connection worked

6 years agobus: fill in unique name when using kdbus
Lennart Poettering [Thu, 11 Apr 2013 22:43:12 +0000 (00:43 +0200)]
bus: fill in unique name when using kdbus

6 years agobus: add kdbus test case
Lennart Poettering [Thu, 11 Apr 2013 22:26:12 +0000 (00:26 +0200)]
bus: add kdbus test case

6 years agobus: basic implementation of kdbus client side
Lennart Poettering [Thu, 11 Apr 2013 21:09:29 +0000 (23:09 +0200)]
bus: basic implementation of kdbus client side

6 years agoupdate TODO
Lennart Poettering [Thu, 11 Apr 2013 00:09:53 +0000 (02:09 +0200)]
update TODO

6 years agobus: calculate iovec for messages only when we need it
Lennart Poettering [Thu, 11 Apr 2013 00:09:36 +0000 (02:09 +0200)]
bus: calculate iovec for messages only when we need it

6 years agomacro: make sure ALIGN() can be calculated constant by the compiler
Lennart Poettering [Thu, 11 Apr 2013 00:07:14 +0000 (02:07 +0200)]
macro: make sure ALIGN() can be calculated constant by the compiler

If we pass a constant value to ALIGN() gcc should have the chance to
calculate the value during compilation rather than runtime, so let's
avoid a static inline call if we can.

6 years agoTODO: update
Kay Sievers [Thu, 11 Apr 2013 17:56:34 +0000 (19:56 +0200)]
TODO: update

6 years agoshell-completion: show failed units as candidates for start
Zbigniew Jędrzejewski-Szmek [Wed, 10 Apr 2013 23:31:58 +0000 (19:31 -0400)]
shell-completion: show failed units as candidates for start

Also show disabled units as candidates for reenable,
since it works and one may want to do enable-or-reenable
in one line.

6 years agoshell-completion: replace printf with echo
Zbigniew Jędrzejewski-Szmek [Wed, 10 Apr 2013 23:06:00 +0000 (19:06 -0400)]
shell-completion: replace printf with echo

It is faster to use a bash built-in, then to invoke an external
program. The problem of unit names starting with a dash is solved
by prepending a space. Spaces are ignored anyway.

For zsh, replace echo "$unit", which is vulnerable to dashes,
with echo " $unit".

6 years agosystemctl: ellipsize job list only when necessary, highlight running
Zbigniew Jędrzejewski-Szmek [Wed, 10 Apr 2013 22:30:19 +0000 (18:30 -0400)]
systemctl: ellipsize job list only when necessary, highlight running

I was debugging systemd waiting on a missing disk, and noticed
that the job listing could use some polishing. Jobs that are
actually running are highlighted, so it's easier to see what
very actually waiting for.

Also, the needed widths are precalculated, to use available columns
more ecomically.

6 years agoudev/ata_id: use initalization instead of explicit zeroing
Zbigniew Jędrzejewski-Szmek [Wed, 10 Apr 2013 22:58:44 +0000 (18:58 -0400)]
udev/ata_id: use initalization instead of explicit zeroing

6 years agolibsystemd-bus: initalize handle_cmsg to false
Lukas Nykryn [Wed, 10 Apr 2013 10:54:02 +0000 (12:54 +0200)]
libsystemd-bus: initalize handle_cmsg to false

6 years agotty-ask-password-agent: free passwords
Lukas Nykryn [Wed, 10 Apr 2013 10:54:00 +0000 (12:54 +0200)]
tty-ask-password-agent: free passwords

6 years agojournalctl: check return of strjoin
Lukas Nykryn [Wed, 10 Apr 2013 10:53:58 +0000 (12:53 +0200)]
journalctl: check return of strjoin

6 years agoUse initalization instead of explicit zeroing in more places
Zbigniew Jędrzejewski-Szmek [Sat, 6 Apr 2013 02:24:10 +0000 (22:24 -0400)]
Use initalization instead of explicit zeroing in more places