summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-11-06core: support IEC suffixes for RLIMIT stuffKarel Zak
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
2015-11-04Merge pull request #1761 from ssahani/wordLennart Poettering
core: parse socket port to extract_first_word
2015-11-04Merge pull request #1778 from rhdrjones/detect-virtLennart Poettering
detect-virt: one fix and arm/aarch64 dmi detection
2015-11-04Merge pull request #1780 from evverx/fix-install-dbusRonny Chevalier
test-functions: fix dbus-1 installation
2015-11-04test-functions: fix dbus-1 installationEvgeny Vereshchagin
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
2015-11-04detect-virt: dmi: look for KVMAndrew Jones
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.
2015-11-04arm/aarch64: detect-virt: check dmiAndrew Jones
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.
2015-11-04detect-virt: detect in best-heuristic orderAndrew Jones
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.
2015-11-04Merge pull request #1775 from fbuihuu/set-property-completionLennart Poettering
bash-completion: add minimal support fpr 'set-property' command
2015-11-04Merge pull request #1776 from marktheunissen/masterLennart Poettering
systemctl: update documentation for --plain option
2015-11-04Merge pull request #1777 from torstehu/fix-typo2Daniel Mack
core: fix typo
2015-11-04core: fix typoTorstein Husebø
2015-11-04Merge pull request #1773 from evverx/dont-hide-enomemDaniel Mack
core: small fixes to parse_namespace
2015-11-04systemctl: update documentation for --plain optionMark Theunissen
- Existing documentation did not mention that --plain omits the bullets and works on list-units and list-machines.
2015-11-04Merge pull request #1768 from vcaputo/sd-daemon-listen-fds-overflow-bisLennart Poettering
sd-daemon: fix potential LISTEN_FDS overflow in sd_listen_fds()
2015-11-04bash-completion: add minimal support fpr 'set-property' commandFranck Bui
'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.
2015-11-04core: small fixes to parse_namespaceEvgeny Vereshchagin
* don't hide ENOMEM * log r instead of 0
2015-11-03sd-daemon: fix potential LISTEN_FDS overflow in sd_listen_fds()Vito Caputo
2015-11-03core: parse socket port to extract_first_wordSusant Sahani
2015-11-03Merge pull request #1767 from poettering/journald-watchdogDaniel Mack
restore journald watchdog
2015-11-03journal: restore watchdog supportLennart Poettering
2015-11-03sd-daemon: explicitly filter out -1 when parsing watchdog timeoutLennart Poettering
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...
2015-11-03util-lib: move CONF_DIRS_NULSTR definition to def.hLennart Poettering
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
2015-11-03util-lib: move character class definitions to string-util.hLennart Poettering
2015-11-03Merge pull request #1764 from ssahani/jiffies-1Lennart Poettering
(V2) networkd: bridge convert to jiffies
2015-11-03networkd: bridge prop convert to jiffiesSusant Sahani
2015-11-03Time-util: introduce usec to jiffiesSusant Sahani
2015-11-03Merge pull request #1765 from teg/pppoe-removalDaniel Mack
sd-pppoe: drop
2015-11-03sd-pppoe: dropTom Gundersen
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.
2015-11-03Merge pull request #1726 from teg/networkd-2Daniel Mack
networkd: (de)serialize more state and support expiring routes
2015-11-03Merge pull request #1763 from endocode/kayrus/fix_man_chattrDaniel Mack
Fixed link to chattr man page
2015-11-03Fixed link to chattr man pagekayrus
2015-11-03build-sys: temporarily lower libmount version checkMartin Pitt
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
2015-11-03Merge pull request #1744 from evverx/fix-debug-generatorLennart Poettering
debug-generator: respect kernel parameters for default unit setting
2015-11-03debug-generator: respect kernel parameters for default unit settingEvgeny Vereshchagin
2015-11-03core: use runlevel_to_target for /proc/cmdline parsingEvgeny Vereshchagin
2015-11-03proc-cmdline: add runlevel to target mappingEvgeny Vereshchagin
2015-11-03Merge pull request #1754 from martinpitt/masterDaniel Mack
core: drop check for /etc/mtab
2015-11-03Merge pull request #1759 from davidstrauss/masterDaniel Mack
man: Drop "internally," which is misleading
2015-11-03Merge pull request #1758 from poettering/varietygaloreDaniel Mack
A grab bag of stuff
2015-11-02man: Drop "internally," which is misleadingDavid Strauss
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.
2015-11-03log-generator: add option to generate easily compressible dataZbigniew Jędrzejewski-Szmek
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.)
2015-11-03parse-util: introduce parse_ifindex() and make use of it everywhereLennart Poettering
We have enough places where we parse an ifindex, hence introduce a proper parsing function for it, that verifies all parameters.
2015-11-03machine: when we fail to extract a network interface from the machine state, ↵Lennart Poettering
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.
2015-11-03journalctl: when we fail to open a journal file, print whyLennart Poettering
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.
2015-11-03sd-journal: various clean-ups and modernizationsLennart Poettering
- 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.
2015-11-03journalctl: continue operation, even if we run into an invalid fileLennart Poettering
2015-11-03journal: return better error for empty filesZbigniew Jędrzejewski-Szmek
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.
2015-11-02core: expose number of file descriptors in fd store on the busLennart Poettering
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...)
2015-11-02proc-cmdline: return proper errors from shall_restore_state()Lennart Poettering
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.