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.
Tom Gundersen [Sat, 10 May 2014 14:06:23 +0000 (16:06 +0200)]
sd-rtnl: message - add support for getting prefixlen from address messages
Tom Gundersen [Fri, 9 May 2014 16:05:42 +0000 (18:05 +0200)]
networkd: network - fix leak
Tom Gundersen [Fri, 9 May 2014 16:02:14 +0000 (18:02 +0200)]
networkd: manager - initialize variables
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.
Tom Gundersen [Fri, 9 May 2014 15:59:20 +0000 (17:59 +0200)]
networkd: manager - refactor link tracking a bit
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
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.
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.
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.
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.
Tom Gundersen [Thu, 8 May 2014 16:55:11 +0000 (18:55 +0200)]
networkd: manager - drop links and netdevs when we receive DELLINK
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.
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.
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.
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.
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.
Tom Gundersen [Thu, 8 May 2014 17:28:17 +0000 (19:28 +0200)]
networkd: network - do reference counting on netdevs
Tom Gundersen [Thu, 8 May 2014 17:22:53 +0000 (19:22 +0200)]
networkd: network - merge all netdev parsing into one function
Tom Gundersen [Thu, 8 May 2014 16:54:26 +0000 (18:54 +0200)]
networkd: introduce refcounting for Links and NetDevs
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.
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
Tom Gundersen [Thu, 8 May 2014 15:32:32 +0000 (17:32 +0200)]
timesyncd: read global operational state from networkd
Tom Gundersen [Thu, 8 May 2014 15:21:37 +0000 (17:21 +0200)]
sd-network: expose global operational state
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.
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.
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
Tom Gundersen [Thu, 8 May 2014 10:32:11 +0000 (12:32 +0200)]
networkd: link - operstate is an enum, not a bitmask
Łukasz Stelmach [Thu, 8 May 2014 10:57:26 +0000 (12:57 +0200)]
core: check the right variable for failed open()
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.
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.
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.
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.
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
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
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
Tom Gundersen [Wed, 7 May 2014 14:42:47 +0000 (16:42 +0200)]
networkd: link - always maintain link operstate regardless of admin state
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.
Kay Sievers [Wed, 7 May 2014 12:45:32 +0000 (14:45 +0200)]
timesyncd: shorten log message
Jan Engelhardt [Sat, 3 May 2014 17:15:27 +0000 (19:15 +0200)]
doc: adhere to XML syntax
Jan Engelhardt [Sat, 3 May 2014 17:15:24 +0000 (19:15 +0200)]
doc: typographical fine tuning
Jan Engelhardt [Sat, 3 May 2014 17:15:23 +0000 (19:15 +0200)]
doc: use non-contracted forms in written documents
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.
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
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.
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.
Lennart Poettering [Tue, 6 May 2014 16:51:08 +0000 (18:51 +0200)]
man: document sd_event_add_time(3)
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
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
Lennart Poettering [Tue, 6 May 2014 15:03:28 +0000 (17:03 +0200)]
journald: remove some dead code
Lennart Poettering [Tue, 6 May 2014 15:03:09 +0000 (17:03 +0200)]
load-fragment: minor cleanup
Lennart Poettering [Tue, 6 May 2014 15:02:54 +0000 (17:02 +0200)]
update TODO
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.
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
Lennart Poettering [Tue, 6 May 2014 11:07:15 +0000 (13:07 +0200)]
list: make LIST_FIND_TAIL work for empty lists
Lennart Poettering [Tue, 6 May 2014 11:04:29 +0000 (13:04 +0200)]
update TODO
Lennart Poettering [Tue, 6 May 2014 10:34:03 +0000 (12:34 +0200)]
timesyncd: keep order of NTP servers
Lennart Poettering [Tue, 6 May 2014 10:33:53 +0000 (12:33 +0200)]
update TODO
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
Kay Sievers [Tue, 6 May 2014 10:29:20 +0000 (12:29 +0200)]
timesyncd: accept NTP version 3 responses
Lennart Poettering [Mon, 5 May 2014 23:37:29 +0000 (01:37 +0200)]
timesyncd: add a more servers by default
Lennart Poettering [Mon, 5 May 2014 23:37:13 +0000 (01:37 +0200)]
timesyncd: also try next server when sendto() fails
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
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
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
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
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
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.
Lennart Poettering [Mon, 5 May 2014 19:47:38 +0000 (21:47 +0200)]
timesync: use safe_close() where possible
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
Lennart Poettering [Mon, 5 May 2014 19:39:10 +0000 (21:39 +0200)]
build-sys: enable timesyncd by default
Lennart Poettering [Mon, 5 May 2014 19:18:54 +0000 (21:18 +0200)]
update TODO
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.
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.
Kay Sievers [Mon, 5 May 2014 12:23:10 +0000 (14:23 +0200)]
hwdb: update
Kay Sievers [Mon, 5 May 2014 12:21:40 +0000 (14:21 +0200)]
timesyncd: log drift value as signed
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.
Tom Gundersen [Fri, 2 May 2014 13:49:40 +0000 (15:49 +0200)]
sd-rtnl: route - allow setting multiple matching routes
Tom Gundersen [Wed, 30 Apr 2014 08:37:13 +0000 (10:37 +0200)]
TODO
Kay Sievers [Sat, 3 May 2014 13:03:27 +0000 (15:03 +0200)]
timesyncd: log drift correction
Lennart Poettering [Fri, 2 May 2014 15:56:05 +0000 (17:56 +0200)]
async: add asynchronous close() call
Lennart Poettering [Fri, 2 May 2014 15:56:01 +0000 (17:56 +0200)]
update TODO
Kay Sievers [Wed, 30 Apr 2014 14:55:10 +0000 (16:55 +0200)]
timesyncd: use nanosecond mode
Kay Sievers [Wed, 30 Apr 2014 07:37:47 +0000 (09:37 +0200)]
timesyncd: remove debug code
Umut Tezduyar Lindskog [Tue, 29 Apr 2014 20:40:38 +0000 (22:40 +0200)]
networkd: dont configure route if lease doesn't have one
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
Kay Sievers [Tue, 29 Apr 2014 21:48:23 +0000 (23:48 +0200)]
timesyncd: limit debug values to milliseconds
Michal Sekletar [Tue, 29 Apr 2014 20:15:47 +0000 (22:15 +0200)]
update TODO
Tom Gundersen [Tue, 29 Apr 2014 19:57:11 +0000 (21:57 +0200)]
sd-dhcp-lease: fix double realloc
Kay Sievers [Tue, 29 Apr 2014 14:26:09 +0000 (16:26 +0200)]
build-sys: fix linking order for networkd-wait-only
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
Tom Gundersen [Tue, 29 Apr 2014 13:42:05 +0000 (15:42 +0200)]
networkd: fix distcheck
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.
Tom Gundersen [Tue, 29 Apr 2014 10:46:06 +0000 (12:46 +0200)]
sd-dhcp-leaes: use newdup()
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.
Kay Sievers [Tue, 29 Apr 2014 08:16:07 +0000 (10:16 +0200)]
timesyncd: update log message
Kay Sievers [Tue, 29 Apr 2014 06:57:51 +0000 (08:57 +0200)]
timesyncd: add unit and man page
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
Kay Sievers [Mon, 28 Apr 2014 12:45:42 +0000 (14:45 +0200)]
rename timedate-sntp to timesync
Jonathan Boulle [Mon, 28 Apr 2014 06:15:50 +0000 (08:15 +0200)]
conf-parser: Fix typo in comment
Fix minor typo in conf parser