chiark / gitweb /
elogind.git
9 years agortnl: message - move code around
Tom Gundersen [Sat, 10 May 2014 17:40:11 +0000 (19:40 +0200)]
rtnl: message - move code around

No functional change.

9 years agortnl: change from bitmask to enum for rtnl groups
Tom Gundersen [Sat, 10 May 2014 17:38:32 +0000 (19:38 +0200)]
rtnl: change from bitmask to enum for rtnl groups

The bitmask is deprecated in the kernel, so move to the new interface. At the moment
this does not make a difference for us, but it avoids having to change the API in the future.

9 years agonetworkd: link - redo flag change logging
Tom Gundersen [Sat, 10 May 2014 14:08:03 +0000 (16:08 +0200)]
networkd: link - redo flag change logging

Make the logging less verbose by only printing all the changed flags on one line,
at the same time make it more complete by supporting all flags currently supported
by the kernel.

We still fall back to printing the raw flags in case we get something we do not recognize
This may be useful when running on new kernels.

9 years agosd-rtnl: message - add support for getting prefixlen from address messages
Tom Gundersen [Sat, 10 May 2014 14:06:23 +0000 (16:06 +0200)]
sd-rtnl: message - add support for getting prefixlen from address messages

9 years agonetworkd: network - fix leak
Tom Gundersen [Fri, 9 May 2014 16:05:42 +0000 (18:05 +0200)]
networkd: network - fix leak

9 years agonetworkd: manager - initialize variables
Tom Gundersen [Fri, 9 May 2014 16:02:14 +0000 (18:02 +0200)]
networkd: manager - initialize variables

9 years agonetworkd: netdev - rephrase logging message a bit
Tom Gundersen [Fri, 9 May 2014 16:00:20 +0000 (18:00 +0200)]
networkd: netdev - rephrase logging message a bit

Make it fit with what is logged from the link.

9 years agonetworkd: manager - refactor link tracking a bit
Tom Gundersen [Fri, 9 May 2014 15:59:20 +0000 (17:59 +0200)]
networkd: manager - refactor link tracking a bit

9 years agosystemctl: return an error code is status fails
Zbigniew Jędrzejewski-Szmek [Sat, 10 May 2014 01:44:25 +0000 (03:44 +0200)]
systemctl: return an error code is status fails

This got lost in the refactoring in f74294c1dabb4.

Also make sure that the return code corresponds to the *first* failure,
not the last.

https://lists.fedoraproject.org/pipermail/devel/2014-May/199080.html

9 years agonetworkd: link - don't log errors when missing routes/addresses are dropped
Tom Gundersen [Fri, 9 May 2014 12:23:17 +0000 (14:23 +0200)]
networkd: link - don't log errors when missing routes/addresses are dropped

We were ignoring the wrong errno.

9 years agonetworkd: link - handle links coming back to life
Tom Gundersen [Fri, 9 May 2014 10:11:15 +0000 (12:11 +0200)]
networkd: link - handle links coming back to life

When enslaving devices, we may receieve DELLINK/NEWLINK for the same ifindex,
let's not be confused by this.

9 years agonetworkd: reorder bonding and bridging
Tom Gundersen [Fri, 9 May 2014 10:20:21 +0000 (12:20 +0200)]
networkd: reorder bonding and bridging

A link should only ever be part of one, but if we accidentally do both, let's do it
in the right order so the failure is more obvious in the logs.

9 years agosd-dhcp-client: improve logging when stopping client
Tom Gundersen [Thu, 8 May 2014 22:26:22 +0000 (00:26 +0200)]
sd-dhcp-client: improve logging when stopping client

'Requested by user' was confusing, just drop it.

9 years agonetworkd: manager - drop links and netdevs when we receive DELLINK
Tom Gundersen [Thu, 8 May 2014 16:55:11 +0000 (18:55 +0200)]
networkd: manager - drop links and netdevs when we receive DELLINK

9 years agonetworkd: netdev - drop if creation fails
Tom Gundersen [Thu, 8 May 2014 19:08:12 +0000 (21:08 +0200)]
networkd: netdev - drop if creation fails

This ensures that all links waiting to be enslaved are notified that the netdev does not exist.

9 years agonetworkd: link - introduce LINGER state and link_drop()
Tom Gundersen [Thu, 8 May 2014 18:50:05 +0000 (20:50 +0200)]
networkd: link - introduce LINGER state and link_drop()

We need the LINGER state in case we still have references to the link after it has been dropped.

9 years agonetworkd: netdev - introduce LINGER state and netdev_drop()
Tom Gundersen [Thu, 8 May 2014 18:42:22 +0000 (20:42 +0200)]
networkd: netdev - introduce LINGER state and netdev_drop()

We need the LINGER state in case we still have references to the netdev after it has been dropped.

9 years agonetworkd: netdev - cancel all callbacks when freeing
Tom Gundersen [Thu, 8 May 2014 18:40:56 +0000 (20:40 +0200)]
networkd: netdev - cancel all callbacks when freeing

This notifies the link that the netdev no longer exists.

9 years agonetworkd: link - take refcounts on links
Tom Gundersen [Thu, 8 May 2014 17:46:06 +0000 (19:46 +0200)]
networkd: link - take refcounts on links

We need to take a refcount on the link whenever we expect a callback. The exceptions
are the ipv4ll/dhcp clients as their lifetimes are guaranteed to be shorter than that
of the link.

9 years agonetworkd: network - do reference counting on netdevs
Tom Gundersen [Thu, 8 May 2014 17:28:17 +0000 (19:28 +0200)]
networkd: network - do reference counting on netdevs

9 years agonetworkd: network - merge all netdev parsing into one function
Tom Gundersen [Thu, 8 May 2014 17:22:53 +0000 (19:22 +0200)]
networkd: network - merge all netdev parsing into one function

9 years agonetworkd: introduce refcounting for Links and NetDevs
Tom Gundersen [Thu, 8 May 2014 16:54:26 +0000 (18:54 +0200)]
networkd: introduce refcounting for Links and NetDevs

9 years agonetworkd: link - clean up state files
Tom Gundersen [Thu, 8 May 2014 16:53:32 +0000 (18:53 +0200)]
networkd: link - clean up state files

Also keep the path to the lease file around rather than regenarating it all the time.

9 years agoman: sd_journal_send does nothing when journald is not available
Zbigniew Jędrzejewski-Szmek [Fri, 9 May 2014 12:39:25 +0000 (08:39 -0400)]
man: sd_journal_send does nothing when journald is not available

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

9 years agotimesyncd: read global operational state from networkd
Tom Gundersen [Thu, 8 May 2014 15:32:32 +0000 (17:32 +0200)]
timesyncd: read global operational state from networkd

9 years agosd-network: expose global operational state
Tom Gundersen [Thu, 8 May 2014 15:21:37 +0000 (17:21 +0200)]
sd-network: expose global operational state

9 years agotimesyncd: only run when the system has a carrier on a network interface
Tom Gundersen [Wed, 7 May 2014 13:26:47 +0000 (15:26 +0200)]
timesyncd: only run when the system has a carrier on a network interface

As the operational state detection in sd-network is still too primitive, timesyncd
will likely try to connect a bit early, so the first attempt will fail.

9 years agonetworkd-wait-online: flush monitor events after processing
Tom Gundersen [Thu, 8 May 2014 11:14:42 +0000 (13:14 +0200)]
networkd-wait-online: flush monitor events after processing

Otherwise the event will trigger immediately again.

9 years agonetworkd-wait-online: fix false positives when checking if a link is managed by networkd
Tom Gundersen [Thu, 8 May 2014 11:11:23 +0000 (13:11 +0200)]
networkd-wait-online: fix false positives when checking if a link is managed by networkd

9 years agonetworkd: link - operstate is an enum, not a bitmask
Tom Gundersen [Thu, 8 May 2014 10:32:11 +0000 (12:32 +0200)]
networkd: link - operstate is an enum, not a bitmask

9 years agocore: check the right variable for failed open()
Łukasz Stelmach [Thu, 8 May 2014 10:57:26 +0000 (12:57 +0200)]
core: check the right variable for failed open()

9 years agodoc: balance C indirections in function prototypes
Jan Engelhardt [Wed, 7 May 2014 23:28:46 +0000 (01:28 +0200)]
doc: balance C indirections in function prototypes

Shift the asterisks in the documentation's prototypes such that they
are consistent among each other. Use the right side to match what is
used in source code.

Addendum to commit v209~82.

9 years agodoc: write out stdin/stdout file descriptors
Jan Engelhardt [Wed, 7 May 2014 23:28:47 +0000 (01:28 +0200)]
doc: write out stdin/stdout file descriptors

"When refering to code, STDOUT/STDOUT/STDERR are replaced with
stdin/stdout/stderr, and in other places they are replaced with
normal phrases like standard output, etc."

Addendum to commit v209~127.

9 years agodoc: comma placement corrections and word order
Jan Engelhardt [Wed, 7 May 2014 23:28:45 +0000 (01:28 +0200)]
doc: comma placement corrections and word order

Set commas where there should be some.
Some improvements to word order.

9 years agodoc: corrections to words and forms
Jan Engelhardt [Wed, 7 May 2014 23:28:44 +0000 (01:28 +0200)]
doc: corrections to words and forms

This patch exchange words which are inappropriate for a situation,
deletes duplicated words, and adds particles where needed.

9 years agobacklight: handle saved brightness exceeding max brightness
Jani Nikula [Wed, 7 May 2014 09:01:01 +0000 (12:01 +0300)]
backlight: handle saved brightness exceeding max brightness

If too high a brightness value has been saved (e.g. due to kernel
mechanism changing from one kernel version to another, or booting the
userspace on another system), the brightness update fails and the
process exits.

Clamp saved brightness between the policy minimum introduced in

commit 7b909d7407965c03caaba30daae7aee113627a83
Author: Josh Triplett <josh@joshtriplett.org>
Date:   Tue Mar 11 21:16:33 2014 -0700

    backlight: Avoid restoring brightness to an unreadably dim level

and the absolute maximum.

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

9 years agopo: add Greek translation
Dimitris Spingos [Wed, 7 May 2014 16:27:02 +0000 (18:27 +0200)]
po: add Greek translation

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

9 years agonetworkd-wait-online: rely purely on sd-network events and drop rtnl hooks
Tom Gundersen [Wed, 7 May 2014 14:35:52 +0000 (16:35 +0200)]
networkd-wait-online: rely purely on sd-network events and drop rtnl hooks

9 years agonetworkd: link - always maintain link operstate regardless of admin state
Tom Gundersen [Wed, 7 May 2014 14:42:47 +0000 (16:42 +0200)]
networkd: link - always maintain link operstate regardless of admin state

9 years agosd-network: expose both admin and operational state directly
Tom Gundersen [Wed, 7 May 2014 14:35:05 +0000 (16:35 +0200)]
sd-network: expose both admin and operational state directly

Also add a call to check if a link is loopback, as this should commonly be ignored.

9 years agotimesyncd: shorten log message
Kay Sievers [Wed, 7 May 2014 12:45:32 +0000 (14:45 +0200)]
timesyncd: shorten log message

9 years agodoc: adhere to XML syntax
Jan Engelhardt [Sat, 3 May 2014 17:15:27 +0000 (19:15 +0200)]
doc: adhere to XML syntax

9 years agodoc: typographical fine tuning
Jan Engelhardt [Sat, 3 May 2014 17:15:24 +0000 (19:15 +0200)]
doc: typographical fine tuning

9 years agodoc: use non-contracted forms in written documents
Jan Engelhardt [Sat, 3 May 2014 17:15:23 +0000 (19:15 +0200)]
doc: use non-contracted forms in written documents

9 years agosd-dhcp-client: use asynchronous_close()
Tom Gundersen [Tue, 6 May 2014 20:59:22 +0000 (22:59 +0200)]
sd-dhcp-client: use asynchronous_close()

close() is a blocking call, which may slow things down measurably when running many dhcp
clients in the same single-threaded main loop. Let's just use the asynchronous version
instead to avoid the problem.

9 years agosd-dhcp: network - don't leak sockets on failure
Tom Gundersen [Tue, 6 May 2014 20:02:32 +0000 (22:02 +0200)]
sd-dhcp: network - don't leak sockets on failure

Also some general cleanups

9 years agosd-dhcp: network - set TOS on outgoing packets
Tom Gundersen [Tue, 6 May 2014 20:02:14 +0000 (22:02 +0200)]
sd-dhcp: network - set TOS on outgoing packets

This should improve performance on busy wireless networks and the
like. Inspired by a similar change in dnsmasq.

9 years agodhcp-network: don't pass ifindex to bind_udp_socket
Tom Gundersen [Tue, 6 May 2014 19:57:09 +0000 (21:57 +0200)]
dhcp-network: don't pass ifindex to bind_udp_socket

UDP sockets can anyway not be bound to specific netdev's. The packages would have to be filtered
when received instead.

9 years agoman: document sd_event_add_time(3)
Lennart Poettering [Tue, 6 May 2014 16:51:08 +0000 (18:51 +0200)]
man: document sd_event_add_time(3)

9 years agotimesyncd: hook up systemd-timesyncd with systemd-timedated
Lennart Poettering [Tue, 6 May 2014 16:20:49 +0000 (18:20 +0200)]
timesyncd: hook up systemd-timesyncd with systemd-timedated

Later on we will probably remove support for controlling any other NTP
implementations but systemd-timesyncd, but for now, let's keep things
generic

9 years agotimesyncd: never accept NTP time from server that is older than systemd's release...
Lennart Poettering [Tue, 6 May 2014 16:08:04 +0000 (18:08 +0200)]
timesyncd: never accept NTP time from server that is older than systemd's release time

9 years agojournald: remove some dead code
Lennart Poettering [Tue, 6 May 2014 15:03:28 +0000 (17:03 +0200)]
journald: remove some dead code

9 years agoload-fragment: minor cleanup
Lennart Poettering [Tue, 6 May 2014 15:03:09 +0000 (17:03 +0200)]
load-fragment: minor cleanup

9 years agoupdate TODO
Lennart Poettering [Tue, 6 May 2014 15:02:54 +0000 (17:02 +0200)]
update TODO

9 years agotimesyncd: read server settings from a configuration file
Lennart Poettering [Tue, 6 May 2014 15:02:11 +0000 (17:02 +0200)]
timesyncd: read server settings from a configuration file

Also, allow compiling in a default server list via a configure command
line item.

9 years agotimesyncd: when an NTP server doesn't respond, proceed with the next
Lennart Poettering [Tue, 6 May 2014 14:15:02 +0000 (16:15 +0200)]
timesyncd: when an NTP server doesn't respond, proceed with the next

9 years agolist: make LIST_FIND_TAIL work for empty lists
Lennart Poettering [Tue, 6 May 2014 11:07:15 +0000 (13:07 +0200)]
list: make LIST_FIND_TAIL work for empty lists

9 years agoupdate TODO
Lennart Poettering [Tue, 6 May 2014 11:04:29 +0000 (13:04 +0200)]
update TODO

9 years agotimesyncd: keep order of NTP servers
Lennart Poettering [Tue, 6 May 2014 10:34:03 +0000 (12:34 +0200)]
timesyncd: keep order of NTP servers

9 years agoupdate TODO
Lennart Poettering [Tue, 6 May 2014 10:33:53 +0000 (12:33 +0200)]
update TODO

9 years agotimesyncd: make sure to reread /etc/resolv.conf when we try the next NTP server
Lennart Poettering [Tue, 6 May 2014 10:33:43 +0000 (12:33 +0200)]
timesyncd: make sure to reread /etc/resolv.conf when we try the next NTP server

9 years agotimesyncd: accept NTP version 3 responses
Kay Sievers [Tue, 6 May 2014 10:29:20 +0000 (12:29 +0200)]
timesyncd: accept NTP version 3 responses

9 years agotimesyncd: add a more servers by default
Lennart Poettering [Mon, 5 May 2014 23:37:29 +0000 (01:37 +0200)]
timesyncd: add a more servers by default

9 years agotimesyncd: also try next server when sendto() fails
Lennart Poettering [Mon, 5 May 2014 23:37:13 +0000 (01:37 +0200)]
timesyncd: also try next server when sendto() fails

9 years agotimesyncd: don't busy loop when we cannot connect to any servers
Lennart Poettering [Mon, 5 May 2014 23:29:47 +0000 (01:29 +0200)]
timesyncd: don't busy loop when we cannot connect to any servers

9 years agotimesyncd: properly handle multiple configured NTP servers and multiplei IP addresses...
Lennart Poettering [Mon, 5 May 2014 23:17:35 +0000 (01:17 +0200)]
timesyncd: properly handle multiple configured NTP servers and multiplei IP addresses per server name

9 years agotimesyncd: lookup name server via sd-resolve, support IPv6, react to SIGINT/SITERM
Lennart Poettering [Mon, 5 May 2014 21:53:17 +0000 (23:53 +0200)]
timesyncd: lookup name server via sd-resolve, support IPv6, react to SIGINT/SITERM

9 years agosd-resolve: make sure we can destroy a query object from its own callback handler
Lennart Poettering [Mon, 5 May 2014 21:49:19 +0000 (23:49 +0200)]
sd-resolve: make sure we can destroy a query object from its own callback handler

9 years agosd-event: allow disabling event sources when an event object is dying anyway
Lennart Poettering [Mon, 5 May 2014 21:48:25 +0000 (23:48 +0200)]
sd-event: allow disabling event sources when an event object is dying anyway

9 years agosd-event: make it easy to bind signal handling to event loop exits
Lennart Poettering [Mon, 5 May 2014 21:47:56 +0000 (23:47 +0200)]
sd-event: make it easy to bind signal handling to event loop exits

By passing a NULL callback provide a simple way to make event loops exit
on SIGTERM and other signals.

9 years agotimesync: use safe_close() where possible
Lennart Poettering [Mon, 5 May 2014 19:47:38 +0000 (21:47 +0200)]
timesync: use safe_close() where possible

9 years agotimesync: always initialize structs when declaring them as far as possible with conts...
Lennart Poettering [Mon, 5 May 2014 19:47:09 +0000 (21:47 +0200)]
timesync: always initialize structs when declaring them as far as possible with contsant values

9 years agobuild-sys: enable timesyncd by default
Lennart Poettering [Mon, 5 May 2014 19:39:10 +0000 (21:39 +0200)]
build-sys: enable timesyncd by default

9 years agoupdate TODO
Lennart Poettering [Mon, 5 May 2014 19:18:54 +0000 (21:18 +0200)]
update TODO

9 years agobuild-sys: move async.[ch] to src/shared
Lennart Poettering [Mon, 5 May 2014 19:18:34 +0000 (21:18 +0200)]
build-sys: move async.[ch] to src/shared

So that we can use it at multiple places.

9 years agocore: require cgroups filesystem to be available
Kay Sievers [Mon, 5 May 2014 16:49:43 +0000 (18:49 +0200)]
core: require cgroups filesystem to be available

We should no longer pretend that we can run in any sensible way
without the kernel supporting us with cgroups functionality.

9 years agohwdb: update
Kay Sievers [Mon, 5 May 2014 12:23:10 +0000 (14:23 +0200)]
hwdb: update

9 years agotimesyncd: log drift value as signed
Kay Sievers [Mon, 5 May 2014 12:21:40 +0000 (14:21 +0200)]
timesyncd: log drift value as signed

9 years agosd-rtnl-message: append - fix uninitialized memory
Tom Gundersen [Fri, 2 May 2014 20:29:18 +0000 (22:29 +0200)]
sd-rtnl-message: append - fix uninitialized memory

We were not properly clearing the padding at the front of some containers.

9 years agosd-rtnl: route - allow setting multiple matching routes
Tom Gundersen [Fri, 2 May 2014 13:49:40 +0000 (15:49 +0200)]
sd-rtnl: route - allow setting multiple matching routes

9 years agoTODO
Tom Gundersen [Wed, 30 Apr 2014 08:37:13 +0000 (10:37 +0200)]
TODO

9 years agotimesyncd: log drift correction
Kay Sievers [Sat, 3 May 2014 13:03:27 +0000 (15:03 +0200)]
timesyncd: log drift correction

9 years agoasync: add asynchronous close() call
Lennart Poettering [Fri, 2 May 2014 15:56:05 +0000 (17:56 +0200)]
async: add asynchronous close() call

9 years agoupdate TODO
Lennart Poettering [Fri, 2 May 2014 15:56:01 +0000 (17:56 +0200)]
update TODO

9 years agotimesyncd: use nanosecond mode
Kay Sievers [Wed, 30 Apr 2014 14:55:10 +0000 (16:55 +0200)]
timesyncd: use nanosecond mode

9 years agotimesyncd: remove debug code
Kay Sievers [Wed, 30 Apr 2014 07:37:47 +0000 (09:37 +0200)]
timesyncd: remove debug code

9 years agonetworkd: dont configure route if lease doesn't have one
Umut Tezduyar Lindskog [Tue, 29 Apr 2014 20:40:38 +0000 (22:40 +0200)]
networkd: dont configure route if lease doesn't have one

9 years agosd-network: add support for only listening to some types of changes
Tom Gundersen [Tue, 29 Apr 2014 20:27:29 +0000 (22:27 +0200)]
sd-network: add support for only listening to some types of changes

9 years agotimesyncd: limit debug values to milliseconds
Kay Sievers [Tue, 29 Apr 2014 21:48:23 +0000 (23:48 +0200)]
timesyncd: limit debug values to milliseconds

9 years agoupdate TODO
Michal Sekletar [Tue, 29 Apr 2014 20:15:47 +0000 (22:15 +0200)]
update TODO

9 years agosd-dhcp-lease: fix double realloc
Tom Gundersen [Tue, 29 Apr 2014 19:57:11 +0000 (21:57 +0200)]
sd-dhcp-lease: fix double realloc

9 years agobuild-sys: fix linking order for networkd-wait-only
Kay Sievers [Tue, 29 Apr 2014 14:26:09 +0000 (16:26 +0200)]
build-sys: fix linking order for networkd-wait-only

9 years agosd-resolve: rework sd-resolve to be callback based, similar in style to sd-bus and...
Lennart Poettering [Tue, 29 Apr 2014 13:44:31 +0000 (15:44 +0200)]
sd-resolve: rework sd-resolve to be callback based, similar in style to sd-bus and sd-event

9 years agonetworkd: fix distcheck
Tom Gundersen [Tue, 29 Apr 2014 13:42:05 +0000 (15:42 +0200)]
networkd: fix distcheck

9 years agosd-dhcp-lease: (de)serialize DNS and NTP servers
Tom Gundersen [Tue, 29 Apr 2014 11:29:12 +0000 (13:29 +0200)]
sd-dhcp-lease: (de)serialize DNS and NTP servers

Also use inet_ntoa rather than inet_ntop.

9 years agosd-dhcp-leaes: use newdup()
Tom Gundersen [Tue, 29 Apr 2014 10:46:06 +0000 (12:46 +0200)]
sd-dhcp-leaes: use newdup()

9 years agosd-dhcp-lease: add NTP support
Tom Gundersen [Tue, 29 Apr 2014 10:17:27 +0000 (12:17 +0200)]
sd-dhcp-lease: add NTP support

Export the NTP servers so timesyncd can use them.

9 years agotimesyncd: update log message
Kay Sievers [Tue, 29 Apr 2014 08:16:07 +0000 (10:16 +0200)]
timesyncd: update log message

9 years agotimesyncd: add unit and man page
Kay Sievers [Tue, 29 Apr 2014 06:57:51 +0000 (08:57 +0200)]
timesyncd: add unit and man page

9 years agomachine-id: only look into KVM uuid when we are not running in a
Lennart Poettering [Mon, 28 Apr 2014 16:11:40 +0000 (18:11 +0200)]
machine-id: only look into KVM uuid when we are not running in a
container