Lennart Poettering
255baef68a
core: add new "flush" job mode to cancel all other jobs when queuing a new job
2013-11-26 02:26:31 +01:00
Lennart Poettering
d420282b28
core: replace OnFailureIsolate= setting by a more generic OnFailureJobMode= setting and make use of it where applicable
2013-11-26 02:26:31 +01:00
Tom Gundersen
02b59d57e0
networkd: add bridge support
...
A bridge is specified in a .netdev file with a section [Bridge]
and at least the entry Name=.
A link may be joined to a bridge if the .network applied to it has
a Bridge= entry giving the name of the bridge in its [Network] section.
We eagerly create all bridges on startup, and links are added to
bridges as soon as they both appear.
2013-11-26 01:32:25 +01:00
Tom Gundersen
c166a07055
networkd: minor fixes
...
In particular, store the ifname, though we should only use it carefully, as
it is not guaranteed to be stable. Using it for logging is fine though.
2013-11-26 01:32:25 +01:00
Tom Gundersen
46fabae6b3
rtnl: add support for IFLA_MASTER
2013-11-26 01:32:25 +01:00
Tom Gundersen
33125ac50b
rtnl: add preliminary support for containers
...
For now, we only support one container type IFLA_LINKINFO, and we
still lack support for parsing the containers again.
2013-11-26 01:32:25 +01:00
Dave Reisner
a9bc6d2df1
networkd: use correct printf formatter
...
uint64_t can be formatted correctly with %ju, rather than casting to
unsigned and potentially losing accuracy.
2013-11-25 18:19:49 -05:00
Yin Kangkai
4ae7885c2c
conf-parser: fix memory realloc error
...
Otherwise there is some memory corruption and undefined behavior,
e.g., in my case systemd-udev was always aborted at the
_cleanup_freep_ around that code blocks.
2013-11-25 23:39:11 +01:00
Lennart Poettering
6301a98cdf
core: fix order of parameters in broadcast_signal()
2013-11-25 23:03:03 +01:00
Lennart Poettering
0fc5ab9057
bus: properly return errors to client if invalid parameters are passed to built-in methods
2013-11-25 22:32:18 +01:00
Lennart Poettering
e14c280244
service: fix handling of PID file inotify events
2013-11-25 22:20:57 +01:00
Lennart Poettering
eeaedb7c26
core: include following set data in dump
2013-11-25 22:10:22 +01:00
Lennart Poettering
9670d583d3
swap: always track the current real device node of all swap devices, even when not active
...
This way, we can avoid executing two /bin/swapon jobs to be dispatched
for the same swap device if it is configured for two different paths.
Previously we were just tracking the device nodes of active swap
devices, which would not allow us to recognize the identity of two swap
devices before they are active.
https://bugs.freedesktop.org/show_bug.cgi?id=69835
2013-11-25 22:10:22 +01:00
Lennart Poettering
0bee65f062
shutdown: during final killing spree also send SIGHUP in addition to SIGTERM to deal with shells
...
This makes shutdown a bit faster if debug-shell.service is enabled.
2013-11-25 22:10:22 +01:00
Thomas Hindoe Paaboel Andersen
26fefda707
delete unused variables
2013-11-25 21:16:26 +01:00
Tom Gundersen
6ae115c1fe
networkd: add support for [Address] sections
...
This will allow specifying more options per address than the
simple Address= entry in the [Network] section.
Preliminary support for the same functionality for [Route] sections
are added, but not yet hooked up, as more testing is needed.
2013-11-25 19:35:44 +01:00
Tom Gundersen
71a6151083
conf-parser: distinguish between multiple sections with the same name
...
Pass on the line on which a section was decleared to the parsers, so they
can distinguish between multiple sections (if they chose to). Currently
no parsers take advantage of this, but a follow-up patch will do that
to distinguish
[Address]
Address=192.168.0.1/24
Label=one
[Address]
Address=192.168.0.2/24
Label=two
from
[Address]
Address=192.168.0.1/24
Label=one
Address=192.168.0.2/24
Label=two
2013-11-25 19:35:44 +01:00
Lennart Poettering
c5ab2e02dc
device: fix typo
2013-11-25 17:59:41 +01:00
Martin Pitt
0ba696e20c
udev-builtin-keyboard: More useful error message
...
Make the "Error calling EVIOCSKEYCODE" error message more useful by mentioning
which scan/key code it tried to set.
2013-11-25 17:44:57 +01:00
Lennart Poettering
d2bd639262
systemctl: remove debug log message
2013-11-25 17:40:54 +01:00
Lennart Poettering
dbed408b8e
systemctl: when status is called without arguments show pager
2013-11-25 17:40:54 +01:00
Lennart Poettering
2c7e050f61
core: fix bus serialization of conditions
2013-11-25 17:40:54 +01:00
Lennart Poettering
4d4c80d073
core: fix serialization of exec command structs
2013-11-25 17:40:53 +01:00
Lennart Poettering
290837072b
core: set some event source priorities to enforce dispatching order
2013-11-25 17:40:53 +01:00
Lennart Poettering
5bcb0f2ba0
swap: split state machine state ACTIVATING into two
...
We expect the event on /proc/swaps before we expect the SIGCHILD,
reflect this in the state machine.
2013-11-25 17:40:53 +01:00
Lennart Poettering
f1421cc67d
device: modernizations
2013-11-25 17:40:53 +01:00
Lennart Poettering
752b590500
core: dispatch run queue only if there's nothing else to do
...
Always read all external events before we decide what we do next.
2013-11-25 17:40:53 +01:00
Lennart Poettering
844de43555
cgroups-agent: down-grade log level
2013-11-25 17:40:53 +01:00
Tom Gundersen
d2df0d0ed3
udev: net_setup_link - don't use Description as Alias
...
Use Description only internally, and allow Alias to be set
as a separate option. For instance SNMP uses ifalias for
a specific purpose, so let's not write to it by default.
2013-11-25 14:53:56 +01:00
Lukas Nykryn
517dcac840
Revert "man: suggest using hash= atribut for swap in example"
...
This reverts commit fa7abba232 .
2013-11-25 09:31:09 +01:00
David Strauss
2af29c881a
socket-proxyd: Fix man page because --listener takes an argument.
2013-11-25 10:58:13 +10:00
David Strauss
adcf4c81c5
socket-proxyd: Add --listener option for listener/destination pairs.
2013-11-25 10:46:48 +10:00
Kay Sievers
828db5d84a
core: set finish_timestamp only after all jobs have finished
2013-11-24 19:18:36 +01:00
Tom Gundersen
a553fd32d1
networkd: fix build
...
Forgot to 'git add'...
2013-11-23 02:47:12 +01:00
Tom Gundersen
4b6141c424
networkd: use Type=notify
...
Also start earlier during boot.
2013-11-23 02:07:08 +01:00
David Strauss
bfe76ec3ce
Update TODO
2013-11-23 07:55:37 +10:00
Lennart Poettering
edb5dd1875
bus: protected dual timestamp property macro for misusage
2013-11-22 20:19:54 +01:00
Lennart Poettering
39abcaee3e
core: don't warn loudly if we cannot send a bus signal to a disconnected client
2013-11-22 20:19:27 +01:00
Lennart Poettering
dbc2c080de
systemctl: indicate in list-dependencies whether a unit is already running
2013-11-22 19:27:56 +01:00
Lennart Poettering
92c1622e14
service: honour that for services RestartSec=0 means immediate restarts but TimeoutSec= means no timing out at all
2013-11-22 19:27:56 +01:00
Lennart Poettering
66ca4ec48a
job: fix serialization
2013-11-22 19:27:56 +01:00
David Strauss
21acf11d40
cgroups: Fix test service inclusion in Makefile
2013-11-23 02:49:05 +10:00
Lennart Poettering
0e586eae02
bus: when closing a bus, drop all refs to queued messages, so that the bus can be freed
2013-11-22 16:31:40 +01:00
Lennart Poettering
dc0218d267
man: simplify socket-proxyd examples
2013-11-22 16:31:40 +01:00
Lennart Poettering
baabc57764
build-sys: move more files from core/ to share/ that are generic enough
2013-11-22 16:31:40 +01:00
Kay Sievers
254ed85a8c
test: test-sched-prio - skip if XDG_RUNTIME_DIR is not set
...
=================================
No control group support available, not creating root group.
Failed to determine XDG_RUNTIME_DIR
Assertion 'r >= 0' failed at src/test/test-sched-prio.c:42, function main(). Aborting.
=================================
2013-11-22 15:58:39 +01:00
Lukasz Skalski
ab9cbe342e
macro: fix problem with __LINE__ macro expansion
...
David:
I already applied a fix for that, but this patch definitely looks nicer. I
changed CONCATENATE_HELPER() -> XCONCATENATE() similar to XSTRINGIFY and
added the UNIQUE() helper.
2013-11-22 14:44:45 +01:00
Kay Sievers
128c3c5881
core: fix timestamp assignment
2013-11-22 13:56:27 +01:00
David Herrmann
b5be11e823
macro: fix assert_cc() fallback
...
We need two-level macro-expansion, otherwise __LINE__ will not get
evaluated.
2013-11-22 09:19:00 +01:00
Marcel Holtmann
5476ad087c
hwdb: Update database of Bluetooth company identifiers
2013-11-21 19:47:56 -08:00