]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
8 years agoMerge pull request #1629 from ssahani/vxlan
Tom Gundersen [Mon, 9 Nov 2015 22:36:59 +0000 (23:36 +0100)] 
Merge pull request #1629 from ssahani/vxlan

networkd: vxlan add option to set FDB entries

8 years agoMerge pull request #1821 from darkcircle/ko-catalog-translation
Lennart Poettering [Mon, 9 Nov 2015 22:19:37 +0000 (23:19 +0100)] 
Merge pull request #1821 from darkcircle/ko-catalog-translation

l10n: add a new Korean translation for the catalog

8 years agoMerge pull request #1820 from michich/errno-v2
Daniel Mack [Mon, 9 Nov 2015 20:56:49 +0000 (21:56 +0100)] 
Merge pull request #1820 from michich/errno-v2

[v2] treewide: treatment of errno and other cleanups

8 years agoadd a new Korean translation for the catalog 1821/head
Seong-ho Cho [Mon, 9 Nov 2015 20:08:44 +0000 (05:08 +0900)] 
add a new Korean translation for the catalog

8 years agoMerge pull request #1762 from endocode/dongsu/l10n-ko-msgs
Lennart Poettering [Mon, 9 Nov 2015 19:09:49 +0000 (20:09 +0100)] 
Merge pull request #1762 from endocode/dongsu/l10n-ko-msgs

po: update Korean translation

8 years agotreewide: apply errno.cocci 1820/head
Michal Schmidt [Thu, 5 Nov 2015 12:44:20 +0000 (13:44 +0100)] 
treewide: apply errno.cocci

with small manual cleanups for style.

8 years agococcinelle: additional errno.cocci hunk
Michal Schmidt [Thu, 5 Nov 2015 12:44:18 +0000 (13:44 +0100)] 
coccinelle: additional errno.cocci hunk

rewrites:
  log_error_errno(errno, ...);
  return -errno;
into:
  return log_error_errno(errno, ...);

8 years agococcinelle: errno.cocci improvements
Michal Schmidt [Thu, 5 Nov 2015 12:44:17 +0000 (13:44 +0100)] 
coccinelle: errno.cocci improvements

Apply to all log_*_errno loglevels.

8 years agoMerge pull request #1798 from evverx/fix-test-udev
Lennart Poettering [Mon, 9 Nov 2015 17:33:22 +0000 (18:33 +0100)] 
Merge pull request #1798 from evverx/fix-test-udev

test-udev: small fixes

8 years agoMerge pull request #1799 from jengelh/doc
Lennart Poettering [Mon, 9 Nov 2015 17:16:21 +0000 (18:16 +0100)] 
Merge pull request #1799 from jengelh/doc

doc: typo and ortho fixes

8 years agoMerge pull request #1807 from michich/boot-timer
Lennart Poettering [Mon, 9 Nov 2015 16:30:58 +0000 (17:30 +0100)] 
Merge pull request #1807 from michich/boot-timer

core/timer: in containers OnBootSec should count from container startup

8 years agoMerge pull request #1794 from karelzak/size_limit
Lennart Poettering [Mon, 9 Nov 2015 16:02:12 +0000 (17:02 +0100)] 
Merge pull request #1794 from karelzak/size_limit

core: support IEC suffixes for RLIMIT stuff

8 years agoMerge pull request #1817 from iaguis/nspawn-custom-service-3
Lennart Poettering [Mon, 9 Nov 2015 15:50:57 +0000 (16:50 +0100)] 
Merge pull request #1817 from iaguis/nspawn-custom-service-3

nspawn: support custom container service name

8 years agodetect-virt: add rkt app container runtime 1817/head
Iago López Galeiras [Mon, 9 Nov 2015 13:37:43 +0000 (14:37 +0100)] 
detect-virt: add rkt app container runtime

8 years agonspawn: support custom container service name
Iago López Galeiras [Mon, 9 Nov 2015 10:32:34 +0000 (11:32 +0100)] 
nspawn: support custom container service name

We were hardcoding "systemd-nspawn" as the value of the $container env
variable and "nspawn" as the service string in machined registration.

This commit allows the user to configure it by setting the
$SYSTEMD_NSPAWN_CONTAINER_SERVICE env variable when calling
systemd-nspawn.

If $SYSTEMD_NSPAWN_CONTAINER_SERVICE is not set, we use the string
"systemd-nspawn" for both, fixing the previous inconsistency.

8 years agoMerge pull request #1796 from michaelolbrich/journal-size
Lennart Poettering [Mon, 9 Nov 2015 13:31:51 +0000 (14:31 +0100)] 
Merge pull request #1796 from michaelolbrich/journal-size

journal: reduce minimum journal file size to 512 KiB

8 years agocore/timer: in containers OnBootSec should count from container startup 1807/head
Michal Schmidt [Sat, 7 Nov 2015 14:09:31 +0000 (15:09 +0100)] 
core/timer: in containers OnBootSec should count from container startup

In Fedora dnf-makecache.timer specifies OnBootSec=10min, but it fired
during boot in systemd-nspawn, because the clock ticks since the host's
boot.

Fix it by treating OnBootSec the same as OnStartupSec when running in
a container.

8 years agoMerge pull request #1801 from chuyd/fix-typos
Daniel Mack [Sat, 7 Nov 2015 11:31:34 +0000 (12:31 +0100)] 
Merge pull request #1801 from chuyd/fix-typos

test: Fix typo in TEST-03-JOBS/test-jobs.sh

8 years agoMerge pull request #1803 from phomes/unused-var
Daniel Mack [Sat, 7 Nov 2015 11:31:23 +0000 (12:31 +0100)] 
Merge pull request #1803 from phomes/unused-var

core: remove unused variable

8 years agocore: remove unused variable 1803/head
Thomas Hindoe Paaboel Andersen [Sat, 7 Nov 2015 10:03:11 +0000 (11:03 +0100)] 
core: remove unused variable

unused since 7b2313f5

8 years agotest: Fix typo in TEST-03-JOBS/test-jobs.sh 1801/head
Jesus Ornelas Aguayo [Fri, 6 Nov 2015 19:01:21 +0000 (13:01 -0600)] 
test: Fix typo in TEST-03-JOBS/test-jobs.sh

Fix typo s/enqueueing/enqueuing/

Signed-off-by: Jesus Ornelas Aguayo <jesus.ornelas.aguayo@intel.com>
8 years agoMerge pull request #1795 from msekletar/networkd-forward
Ronny Chevalier [Fri, 6 Nov 2015 17:14:24 +0000 (18:14 +0100)] 
Merge pull request #1795 from msekletar/networkd-forward

networkd: fix option name in log message

8 years agoMerge pull request #1800 from evverx/fix-test-execute
Ronny Chevalier [Fri, 6 Nov 2015 15:59:05 +0000 (16:59 +0100)] 
Merge pull request #1800 from evverx/fix-test-execute

test-execute: don't use /usr/bin/uname. use sh and PATH

8 years agotest-execute: don't use /usr/bin/uname. use sh and PATH 1800/head
Evgeny Vereshchagin [Fri, 6 Nov 2015 15:42:06 +0000 (15:42 +0000)] 
test-execute: don't use /usr/bin/uname. use sh and PATH

8 years agodoc: use expanded forms for written style 1799/head
Jan Engelhardt [Mon, 26 Oct 2015 14:45:12 +0000 (15:45 +0100)] 
doc: use expanded forms for written style

8 years agodoc: correct orthography, word forms and missing/extraneous words
Jan Engelhardt [Sun, 3 Aug 2014 05:11:37 +0000 (07:11 +0200)] 
doc: correct orthography, word forms and missing/extraneous words

8 years agotest-udev: small fixes 1798/head
Evgeny Vereshchagin [Fri, 6 Nov 2015 12:06:23 +0000 (12:06 +0000)] 
test-udev: small fixes

* print '\n' on error
* use UDEVLIBEXECDIR (udev_rules_new uses it too)

8 years agodoc: correct punctuation and improve typography in documentation
Jan Engelhardt [Sun, 3 Aug 2014 05:11:12 +0000 (07:11 +0200)] 
doc: correct punctuation and improve typography in documentation

8 years agojournal: reduce minimum journal file size to 512 KiB 1796/head
Michael Olbrich [Fri, 6 Nov 2015 10:32:34 +0000 (11:32 +0100)] 
journal: reduce minimum journal file size to 512 KiB

For low end embedded systems 4 MiB for each journal file is a lot of
memory. Journald will use at least 512 KiB even if JOURNAL_FILE_SIZE_MIN is
set to less than that so just use 512 KiB.

8 years agocore: support IEC suffixes for RLIMIT stuff 1794/head
Karel Zak [Fri, 6 Nov 2015 10:06:52 +0000 (11:06 +0100)] 
core: support IEC suffixes for RLIMIT stuff

Let's make things more user-friendly and support for example

  LimitAS=16G

rather than force users to always use LimitAS=16106127360.

The change is relevant for options:

  [Default]Limit{FSIZE,DATA,STACK,CORE,RSS,AS,MEMLOCK,MSGQUEUE}

The patch introduces config_parse_bytes_limit(), it's the same as
config_parse_limit() but uses parse_size() tu support the suffixes.

Addresses: https://github.com/systemd/systemd/issues/1772

8 years agonetworkd: fix option name in log message 1795/head
Michal Sekletar [Fri, 6 Nov 2015 09:51:34 +0000 (10:51 +0100)] 
networkd: fix option name in log message

8 years agosd-resolve: simplify pthread_join() call
Michal Schmidt [Thu, 5 Nov 2015 12:44:15 +0000 (13:44 +0100)] 
sd-resolve: simplify pthread_join() call

POSIX says:
The pthread_join() function shall not return an error code of [EINTR].

8 years agotimesync: return negative errno from manager_adjust_clock() on error
Michal Schmidt [Thu, 5 Nov 2015 12:44:14 +0000 (13:44 +0100)] 
timesync: return negative errno from manager_adjust_clock() on error

8 years agonspawn: save errno before reopening log after exec failure
Michal Schmidt [Thu, 5 Nov 2015 12:44:12 +0000 (13:44 +0100)] 
nspawn: save errno before reopening log after exec failure

8 years agonspawn: no fake errno
Michal Schmidt [Thu, 5 Nov 2015 12:44:11 +0000 (13:44 +0100)] 
nspawn: no fake errno

The S_ISREG test does not set errno, so don't use it in the error
message.

8 years agonspawn: simplify error returns
Michal Schmidt [Thu, 5 Nov 2015 12:44:10 +0000 (13:44 +0100)] 
nspawn: simplify error returns

Use the "return log_error_errno(...)" idiom to have fewer curly braces.

The last hunk also fixes the return value of setup_journal(), but the
fix has no practical effect.

8 years agolibsystemd-network: inet_pton does not set errno on parsing error
Michal Schmidt [Thu, 5 Nov 2015 12:44:10 +0000 (13:44 +0100)] 
libsystemd-network: inet_pton does not set errno on parsing error

it would set errno only for an invalid address family.

Also fix a copy&paste error in one error string.

8 years agoimport: report error before losing errno
Michal Schmidt [Thu, 5 Nov 2015 12:44:09 +0000 (13:44 +0100)] 
import: report error before losing errno

unlink() may change errno, so report the error from rename() first, then
unlink.

8 years agofirstboot: fix errno sign
Michal Schmidt [Thu, 5 Nov 2015 12:44:08 +0000 (13:44 +0100)] 
firstboot: fix errno sign

8 years agojournal: posix_fallocate() does not set errno
Michal Schmidt [Thu, 5 Nov 2015 12:44:07 +0000 (13:44 +0100)] 
journal: posix_fallocate() does not set errno

manpage says:
 posix_fallocate() returns zero on success, or an error number on
 failure. Note that errno is not set.

8 years agotreewide: use the negative error codes returned by our functions
Michal Schmidt [Thu, 5 Nov 2015 12:44:06 +0000 (13:44 +0100)] 
treewide: use the negative error codes returned by our functions

Our functions return negative error codes.
Do not rely on errno being set after calling our own functions.

8 years agojournal: fix incorrect errno reporting
Michal Schmidt [Thu, 5 Nov 2015 12:44:06 +0000 (13:44 +0100)] 
journal: fix incorrect errno reporting

pread() returns -1 on error and sets errno. Do not use the -1 as errno.

8 years agojournal: use int64_t instead of long for catalog file size
Michal Schmidt [Thu, 5 Nov 2015 12:44:05 +0000 (13:44 +0100)] 
journal: use int64_t instead of long for catalog file size

This replaces the use of ftell() with ftello() for 64-bit size on all
archs.

Also drops a pointless check for NULL before calling strbuf_cleanup().

8 years agojournal: drop unnecessary write_catalog() parameter
Michal Schmidt [Thu, 5 Nov 2015 12:44:04 +0000 (13:44 +0100)] 
journal: drop unnecessary write_catalog() parameter

write_catalog() use the hashmap only to get its size. The size is
already given in parameter 'n'.

8 years agolog: whitespace style fix
Michal Schmidt [Thu, 5 Nov 2015 12:44:03 +0000 (13:44 +0100)] 
log: whitespace style fix

8 years agotty-ask-password-agent: fix typo in error message
Michal Schmidt [Thu, 5 Nov 2015 12:44:01 +0000 (13:44 +0100)] 
tty-ask-password-agent: fix typo in error message

8 years agoMerge pull request #1761 from ssahani/word
Lennart Poettering [Wed, 4 Nov 2015 19:16:14 +0000 (20:16 +0100)] 
Merge pull request #1761 from ssahani/word

core: parse socket port to extract_first_word

8 years agoMerge pull request #1778 from rhdrjones/detect-virt
Lennart Poettering [Wed, 4 Nov 2015 19:11:17 +0000 (20:11 +0100)] 
Merge pull request #1778 from rhdrjones/detect-virt

detect-virt: one fix and arm/aarch64 dmi detection

8 years agoMerge pull request #1780 from evverx/fix-install-dbus
Ronny Chevalier [Wed, 4 Nov 2015 19:07:23 +0000 (20:07 +0100)] 
Merge pull request #1780 from evverx/fix-install-dbus

test-functions: fix dbus-1 installation

8 years agotest-functions: fix dbus-1 installation 1780/head
Evgeny Vereshchagin [Wed, 4 Nov 2015 18:33:37 +0000 (18:33 +0000)] 
test-functions: fix dbus-1 installation

The basic setup for the well-known system and session buses is
now done in read-only files in ${datadir} (normally /usr/share).
See the NEWS entry for 1.9.18 for details.

http://cgit.freedesktop.org/dbus/dbus/tree/NEWS

8 years agodetect-virt: dmi: look for KVM 1778/head
Andrew Jones [Tue, 3 Nov 2015 19:31:03 +0000 (13:31 -0600)] 
detect-virt: dmi: look for KVM

Some guests (ARM, AArch64, x86-RHEL) have 'KVM' in the product name.
Look for that first in order to more precisely report "kvm" when
detecting a QEMU/KVM guest. Without this patch we report "qemu",
even if KVM acceleration is in use on ARM/AArch64 guests.

I've only tested a backported version of this and the previous
patch on an AArch64 guest (which worked). Of course it would be
nice to get regression testing on all guest types that depend on
dmi done.

8 years agoarm/aarch64: detect-virt: check dmi
Andrew Jones [Tue, 3 Nov 2015 18:10:13 +0000 (12:10 -0600)] 
arm/aarch64: detect-virt: check dmi

ARM/AArch64 guests now have SMBIOS tables populated (when boot
with a late enough QEMU and a late enough AAVMF is used as the
bootloader). Furthermore, when booting ARM/AArch64 guests with
ACPI, the DT detection obviously no longer works, so we need
dmi detection.

8 years agodetect-virt: detect in best-heuristic order
Andrew Jones [Tue, 3 Nov 2015 20:49:38 +0000 (14:49 -0600)] 
detect-virt: detect in best-heuristic order

afaict, this will fix a regression caused by commit 75f86906c5.
Where we used to report "kvm" before that patch, without this patch,
we would only report "qemu". The reason is because cpuid detection
must come before dmi detection. Also, both can safely come before
other xen heuristics. Untested.

8 years agoMerge pull request #1775 from fbuihuu/set-property-completion
Lennart Poettering [Wed, 4 Nov 2015 16:52:50 +0000 (17:52 +0100)] 
Merge pull request #1775 from fbuihuu/set-property-completion

bash-completion: add minimal support fpr 'set-property' command

8 years agoMerge pull request #1776 from marktheunissen/master
Lennart Poettering [Wed, 4 Nov 2015 16:50:20 +0000 (17:50 +0100)] 
Merge pull request #1776 from marktheunissen/master

systemctl: update documentation for --plain option

8 years agoMerge pull request #1777 from torstehu/fix-typo2
Daniel Mack [Wed, 4 Nov 2015 13:13:12 +0000 (14:13 +0100)] 
Merge pull request #1777 from torstehu/fix-typo2

core: fix typo

8 years agocore: fix typo 1777/head
Torstein Husebø [Wed, 4 Nov 2015 12:18:59 +0000 (13:18 +0100)] 
core: fix typo

8 years agoMerge pull request #1773 from evverx/dont-hide-enomem
Daniel Mack [Wed, 4 Nov 2015 11:17:18 +0000 (12:17 +0100)] 
Merge pull request #1773 from evverx/dont-hide-enomem

core: small fixes to parse_namespace

8 years agosystemctl: update documentation for --plain option 1776/head
Mark Theunissen [Wed, 4 Nov 2015 11:10:26 +0000 (13:10 +0200)] 
systemctl: update documentation for --plain option

- Existing documentation did not mention that --plain omits the bullets and works on list-units and list-machines.

8 years agoMerge pull request #1768 from vcaputo/sd-daemon-listen-fds-overflow-bis
Lennart Poettering [Wed, 4 Nov 2015 10:55:40 +0000 (11:55 +0100)] 
Merge pull request #1768 from vcaputo/sd-daemon-listen-fds-overflow-bis

sd-daemon: fix potential LISTEN_FDS overflow in sd_listen_fds()

8 years agobash-completion: add minimal support fpr 'set-property' command 1775/head
Franck Bui [Tue, 3 Nov 2015 17:42:10 +0000 (18:42 +0100)] 
bash-completion: add minimal support fpr 'set-property' command

'set-property' was missing from the list of known command.

Also a list of unit names will be proposed as next argument.

However no support on property names is provided since it would
require a hard coded list of them.

8 years agocore: small fixes to parse_namespace 1773/head
Evgeny Vereshchagin [Tue, 3 Nov 2015 21:32:34 +0000 (00:32 +0300)] 
core: small fixes to parse_namespace

* don't hide ENOMEM
* log r instead of 0

8 years agosd-daemon: fix potential LISTEN_FDS overflow in sd_listen_fds() 1768/head
Vito Caputo [Tue, 3 Nov 2015 07:05:44 +0000 (23:05 -0800)] 
sd-daemon: fix potential LISTEN_FDS overflow in sd_listen_fds()

8 years agocore: parse socket port to extract_first_word 1761/head
Susant Sahani [Tue, 3 Nov 2015 17:19:05 +0000 (22:49 +0530)] 
core: parse socket port to extract_first_word

8 years agoMerge pull request #1767 from poettering/journald-watchdog
Daniel Mack [Tue, 3 Nov 2015 16:53:15 +0000 (17:53 +0100)] 
Merge pull request #1767 from poettering/journald-watchdog

restore journald watchdog

8 years agojournal: restore watchdog support 1767/head
Lennart Poettering [Tue, 3 Nov 2015 11:28:19 +0000 (12:28 +0100)] 
journal: restore watchdog support

8 years agosd-daemon: explicitly filter out -1 when parsing watchdog timeout
Lennart Poettering [Tue, 3 Nov 2015 11:27:12 +0000 (12:27 +0100)] 
sd-daemon: explicitly filter out -1 when parsing watchdog timeout

We already filter out 0, and as -1 is usually special (meaning infinity,
as in USEC_INFINITY) we should better not accept it either. Better safe
than sorry...

8 years agoutil-lib: move CONF_DIRS_NULSTR definition to def.h
Lennart Poettering [Tue, 3 Nov 2015 11:26:12 +0000 (12:26 +0100)] 
util-lib: move CONF_DIRS_NULSTR definition to def.h

After all, this is not some compiler or C magic, but something very
specific to how systemd works, hence let's move it into def.h, and out
of macro.h

8 years agoutil-lib: move character class definitions to string-util.h
Lennart Poettering [Tue, 3 Nov 2015 11:25:29 +0000 (12:25 +0100)] 
util-lib: move character class definitions to string-util.h

8 years agoMerge pull request #1764 from ssahani/jiffies-1
Lennart Poettering [Tue, 3 Nov 2015 16:38:22 +0000 (17:38 +0100)] 
Merge pull request #1764 from ssahani/jiffies-1

(V2) networkd: bridge convert to jiffies

8 years agonetworkd: bridge prop convert to jiffies 1764/head
Susant Sahani [Tue, 3 Nov 2015 16:29:42 +0000 (21:59 +0530)] 
networkd: bridge prop convert to jiffies

8 years agoTime-util: introduce usec to jiffies
Susant Sahani [Tue, 3 Nov 2015 16:28:42 +0000 (21:58 +0530)] 
Time-util: introduce usec to jiffies

8 years agoMerge pull request #1765 from teg/pppoe-removal
Daniel Mack [Tue, 3 Nov 2015 15:22:17 +0000 (16:22 +0100)] 
Merge pull request #1765 from teg/pppoe-removal

sd-pppoe: drop

8 years agosd-pppoe: drop 1765/head
Tom Gundersen [Tue, 3 Nov 2015 15:13:47 +0000 (16:13 +0100)] 
sd-pppoe: drop

It is really unclear if we want to / have the resources to support this fully, so drop it
for now. It can easily be brought back if a killer usecase emerges.

Note that this code was never hooked up, so this does not remove any features.

8 years agoMerge pull request #1726 from teg/networkd-2
Daniel Mack [Tue, 3 Nov 2015 14:03:50 +0000 (15:03 +0100)] 
Merge pull request #1726 from teg/networkd-2

networkd: (de)serialize more state and support expiring routes

8 years agoMerge pull request #1763 from endocode/kayrus/fix_man_chattr
Daniel Mack [Tue, 3 Nov 2015 13:47:55 +0000 (14:47 +0100)] 
Merge pull request #1763 from endocode/kayrus/fix_man_chattr

Fixed link to chattr man page

8 years agoFixed link to chattr man page 1763/head
kayrus [Tue, 3 Nov 2015 13:39:47 +0000 (14:39 +0100)] 
Fixed link to chattr man page

8 years agobuild-sys: temporarily lower libmount version check
Martin Pitt [Tue, 3 Nov 2015 12:06:56 +0000 (06:06 -0600)] 
build-sys: temporarily lower libmount version check

util-linux 2.27.1's configure.ac still claims to be 2.27.0, which breaks our
version check. Lower it back to 2.27.0 until util-linux gets a fixed tarball.

See #1754

8 years agopo: update Korean translation 1762/head
Dongsu Park [Tue, 3 Nov 2015 12:04:57 +0000 (13:04 +0100)] 
po: update Korean translation

update Korean translation for better understanding.

Reference: https://github.com/systemd/systemd/pull/1388

8 years agoMerge pull request #1744 from evverx/fix-debug-generator
Lennart Poettering [Tue, 3 Nov 2015 12:04:06 +0000 (13:04 +0100)] 
Merge pull request #1744 from evverx/fix-debug-generator

debug-generator: respect kernel parameters for default unit setting

8 years agodebug-generator: respect kernel parameters for default unit setting 1744/head
Evgeny Vereshchagin [Tue, 3 Nov 2015 11:45:56 +0000 (14:45 +0300)] 
debug-generator: respect kernel parameters for default unit setting

8 years agocore: use runlevel_to_target for /proc/cmdline parsing
Evgeny Vereshchagin [Tue, 3 Nov 2015 11:24:52 +0000 (14:24 +0300)] 
core: use runlevel_to_target for /proc/cmdline parsing

8 years agoproc-cmdline: add runlevel to target mapping
Evgeny Vereshchagin [Tue, 3 Nov 2015 11:09:03 +0000 (14:09 +0300)] 
proc-cmdline: add runlevel to target mapping

8 years agoMerge pull request #1754 from martinpitt/master
Daniel Mack [Tue, 3 Nov 2015 06:24:02 +0000 (07:24 +0100)] 
Merge pull request #1754 from martinpitt/master

core: drop check for /etc/mtab

8 years agoMerge pull request #1759 from davidstrauss/master
Daniel Mack [Tue, 3 Nov 2015 06:16:35 +0000 (07:16 +0100)] 
Merge pull request #1759 from davidstrauss/master

man: Drop "internally," which is misleading

8 years agoMerge pull request #1758 from poettering/varietygalore
Daniel Mack [Tue, 3 Nov 2015 06:15:44 +0000 (07:15 +0100)] 
Merge pull request #1758 from poettering/varietygalore

A grab bag of stuff

8 years agoman: add man for vxlan onfigures max number of FDB entries 1629/head
Susant Sahani [Wed, 21 Oct 2015 07:06:28 +0000 (12:36 +0530)] 
man: add man for vxlan onfigures max number of FDB entries

8 years agonetworkd: vxlan add option to set FDB entries
Susant Sahani [Wed, 21 Oct 2015 07:05:33 +0000 (12:35 +0530)] 
networkd: vxlan add option to set FDB entries

Add support to configures maximum number of FDB entries.

8 years agoman: Drop "internally," which is misleading 1759/head
David Strauss [Tue, 3 Nov 2015 01:19:26 +0000 (17:19 -0800)] 
man: Drop "internally," which is misleading

The existing text misleads readers into thinking how the notify socket protocol is "internals" and that they can only use the functions. However, the socket is part of the Interface Stability Promise. So, we should drop "internally" from the description so the man page both indicates both how the functions work and how one would talk to the socket directly.

8 years agolog-generator: add option to generate easily compressible data 1758/head
Zbigniew Jędrzejewski-Szmek [Sun, 25 Oct 2015 03:28:07 +0000 (23:28 -0400)] 
log-generator: add option to generate easily compressible data

This is useful to check that compression actually works, and how
compression influences file size in the best-case-scenario for
compression. (The answer is that not as much as one would hope:
there's still a big overhead of the indexing and since every field
is compressed separately, even fields that compress very well
contribute to the file size. This overhead becomes negligible only
for very big fields.)

8 years agoparse-util: introduce parse_ifindex() and make use of it everywhere
Lennart Poettering [Mon, 2 Nov 2015 22:57:21 +0000 (23:57 +0100)] 
parse-util: introduce parse_ifindex() and make use of it everywhere

We have enough places where we parse an ifindex, hence introduce a
proper parsing function for it, that verifies all parameters.

8 years agomachine: when we fail to extract a network interface from the machine state, don...
Lennart Poettering [Mon, 2 Nov 2015 22:47:38 +0000 (23:47 +0100)] 
machine: when we fail to extract a network interface from the machine state, don't try again

If we failed to extract a word, then that's how it is, we shouldn't try
to extract it again and again, it's unlikely to work, and we just
deadlock.

This is a fix-up for 52278ad31d92dffa9029c8a171b9e9348f5dcc8f.

8 years agojournalctl: when we fail to open a journal file, print why
Lennart Poettering [Mon, 2 Nov 2015 22:37:05 +0000 (23:37 +0100)] 
journalctl: when we fail to open a journal file, print why

When we enumerate journal files and encounter an invalid one, remember
which this, and show it to the user.

Note the possibly slightly surprising logic here: we store only one path
per error code. This means we show all error kinds but not every actual
error we encounter. This has the benefit of not requiring us to keep a
potentially unbounded list of errors with their sources around, but can
still provide a pretty complete overview on the errors we encountered.

Fixes #1669.

8 years agosd-journal: various clean-ups and modernizations
Lennart Poettering [Mon, 2 Nov 2015 22:14:30 +0000 (23:14 +0100)] 
sd-journal: various clean-ups and modernizations

- Always print a debug log message about files and directories we cannot
  open right when it happens instead of the caller, thus reducing the
  number of places where we need to generate the debug message.

- Always push the errors we encounter immediately into the error set,
  when we run into them, instead of in the caller. Thus, we never forget
  to push them in.

- Use stack instead of heap memory where we can.

- Make remove_file() void, since it cannot fail anyway and always
  returned 0.

- Make local machine check of journal directories explicit in a
  function, to make things more readable.

- Port to all directory listing loops FOREACH_DIRENT_ALL()

- sd-daemon is library code, hence never log at higher log levels than
  LOG_DEBUG.

8 years agojournalctl: continue operation, even if we run into an invalid file
Lennart Poettering [Mon, 2 Nov 2015 22:13:01 +0000 (23:13 +0100)] 
journalctl: continue operation, even if we run into an invalid file

8 years agojournal: return better error for empty files
Zbigniew Jędrzejewski-Szmek [Sun, 25 Oct 2015 04:09:44 +0000 (00:09 -0400)] 
journal: return better error for empty files

When reading stuff, we should only return EIO when an actual read error
occured, not when we don't like the data for whatever reason.

We already return ENODATA for all other kinds of file truncation, hence
do the same for the most obvious kind, so that callers know what ENODATA
means.

8 years agocore: expose number of file descriptors in fd store on the bus
Lennart Poettering [Mon, 2 Nov 2015 22:09:06 +0000 (23:09 +0100)] 
core: expose number of file descriptors in fd store on the bus

For each service expose how many file descriptors there are currently in
the fd store.

(Also, fix the exporting of the fdstore limit, given that the field is
just an "unsigned" but we exported it as "uint32_t". Not that there way
any effective difference, but let's make this clean...)

8 years agoproc-cmdline: return proper errors from shall_restore_state()
Lennart Poettering [Mon, 2 Nov 2015 22:07:58 +0000 (23:07 +0100)] 
proc-cmdline: return proper errors from shall_restore_state()

Let's not eat up errors in shall_restore_state(), but in the consumers
instead, just for the sake of keeping the library calls generic.

8 years agocore: bump net.unix.max_dgram_qlen really early during boot
Lennart Poettering [Mon, 2 Nov 2015 08:34:05 +0000 (09:34 +0100)] 
core: bump net.unix.max_dgram_qlen really early during boot

Only that way it actually has an effect on all our sockets, including
$NOTIFY_SOCKET.

8 years agoMerge pull request #1757 from phomes/minor-fixes
Ronny Chevalier [Mon, 2 Nov 2015 22:27:49 +0000 (23:27 +0100)] 
Merge pull request #1757 from phomes/minor-fixes

Minor fixes