Lennart Poettering
fbb634117d
journald: mention how long we needed to flush to /var in the logs
2013-11-27 02:39:19 +01:00
Lennart Poettering
eda4b58b50
journal: simplify pre-allocation logic
...
let's just do a single fallocate() as far as possible, and don't
distuingish between allocated space and file size.
This way we can save a syscall for each append, which makes quite some
benefits.
2013-11-27 01:50:36 +01:00
Lennart Poettering
d0767ffd08
journal: add a test case for flushing messages out of a series of journal files into a single new one
2013-11-27 01:01:53 +01:00
Lennart Poettering
248c78c79c
journal: allow journal_file_copy_entry() to work on non-local files
2013-11-27 00:59:07 +01:00
Lennart Poettering
e5462cd80e
journal: fix iteration when we go backwards from the beginning of an array chain element
2013-11-27 00:58:39 +01:00
Lennart Poettering
f268980d2c
journal: optimize bisection logic a bit by caching the last position
...
This way we can do a quick restart limiting a bit how wildly we need to
jump around during the bisection process.
2013-11-26 20:37:53 +01:00
Lennart Poettering
bf807d4dbf
journald: keep statistics on how of we hit/miss the mmap cache
2013-11-26 18:58:44 +01:00
Lennart Poettering
b8e891e699
journal: make table const
2013-11-26 18:46:03 +01:00
Lennart Poettering
a676e66535
journal: when appending to journal file, allocate larger blocks at once
2013-11-26 18:46:03 +01:00
Daniel Buch
f5f6d0e255
tree-wide usage of %m specifier instead of strerror(errno)
...
Also for log_error() except where a specific error is specified
e.g. errno ? strerror(errno) : "Some user specified message"
2013-11-26 21:07:46 +10:00
Tom Gundersen
34a6dc7dca
man: networkd - document bridging
2013-11-26 12:10:01 +01:00
Kay Sievers
cc3f2093f6
systemctl: fix enable/disable reply handling
2013-11-26 05:19:39 +01:00
Lennart Poettering
baae0358f3
pam_systemd: do not set XDG_RUNTIME_DIR if the session's original user is not the same as the newly logged in one
...
It's better not to set any XDG_RUNTIME_DIR at all rather than one of a
different user. So let's do this.
This changes the bus call parameters of CreateSession(), but that is
explicitly an internal API hence should be fine. Note however, that a
logind restart (the way the RPM postinst scriptlets do it) is necessary
to make things work again.
2013-11-26 05:05:00 +01:00
Lennart Poettering
898d5c9137
nspawn: improve error message when we cannot resolve the root directory argument
2013-11-26 03:50:32 +01:00
Lennart Poettering
a7c0e5d714
man: explain the precise syntax and feature set of unit names at the end of the man page, given that it is detail information
2013-11-26 02:26:31 +01:00
Lennart Poettering
4dc5b821ae
systemctl: replace the three job mode options by a single --job-mode= option
...
Also, expose the new "flush" job mode this way.
2013-11-26 02:26:31 +01:00
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