Commit message (Collapse) | Author | Files | Lines | ||
---|---|---|---|---|---|
2018-12-07 | mount: when the kernel reports a mount to be established reset all kinds of ↵ | Lennart Poettering | 1 | -1/+3 | |
load failures It doesn't matter what kind of precise failure we had earlier with loading the unit, let's report that it loaded successfully now, after all the kernel is an OK source for that, like any other. | |||||
2018-12-07 | mount: regenerate all deps whenever a mount's parameters changes | Lennart Poettering | 1 | -24/+10 | |
Whenever we notice a change on an existing /proc/self/mountinfo line, let's update the deps generated from it. For that, let's flush out the old deps generated this way, and add in the new ones. This takes benefit of the fact that today (unlike a comment this patch removes says) we can remove deps in a somewhat reasonable way. | |||||
2018-12-07 | mount: when allocating a Mount object based on /proc/self/mountinfo mark it so | Lennart Poettering | 1 | -0/+7 | |
Let's set 'from_proc_self_mountinfo' right away, since we know its from there. This is important so that when the load queue is dispatched (and thus mount_load() called) this fact is already known. | |||||
2018-12-07 | mount: let mount_add_extras() take care of remote-fs.target deps | Lennart Poettering | 1 | -16/+1 | |
In a previous commit we added logic that mount_add_extras() (or more precisely mount_add_default_dependencies()) adds in dependencies on remote-fs.target and local-fs.target, hence we can drop this from mount_setup_new_unit() and let the usual load queue dispatching take care of this. | |||||
2018-12-07 | mount: use free_and_strdup() over plain strdup() | Lennart Poettering | 1 | -6/+6 | |
Let's initialize two fields with free_and_strdup() rather than directly with strdup(). The fields should not be initialized so far, but it's still nicer to be prepared for futzre code changes and always free what's stored before replacing it. | |||||
2018-12-07 | mount: generate error message matching the error location | Lennart Poettering | 1 | -4/+2 | |
2018-12-07 | mount: move allocation of Unit object into mount_setup_new_unit() | Lennart Poettering | 1 | -16/+18 | |
This should encapsulate things in a nicer way. | |||||
2018-12-07 | mount: add a common helper for filling in info from /proc/self/mountinfo | Lennart Poettering | 1 | -19/+41 | |
2018-12-07 | mount: don't propagate errors from mount_setup_unit() further up | Lennart Poettering | 1 | -6/+3 | |
If we can't process a specific line in /proc/self/mountinfo we should log about it (which we do), but this should not affect other lines, nor further processing of mount units. Let's keep these failures local. Fixes: #10874 | |||||
2018-12-07 | mount: simplify de-serialization of control PID a bit | Lennart Poettering | 1 | -4/+2 | |
2018-12-07 | mount: serialize umount retry counter across reloads/reexec | Lennart Poettering | 1 | -1/+9 | |
2018-12-07 | mount: make sure mount_add_extras() is always invoked when we load a mount unit | Lennart Poettering | 1 | -12/+17 | |
We need to make sure that the slice property is initialized whenever mount_load() is invoked, even if we fail to load things properly off disk. This is important since we generally don't allow changing the slice after a unit has been started. But given that we must track the state of external objects with mount units we must hence initialize the property no matter what. | |||||
2018-12-07 | mount: document that mount_add_extras() must work with active units, too | Lennart Poettering | 1 | -0/+4 | |
2018-12-07 | mount: set up local-fs.target/remote-fs.target deps in ↵ | Lennart Poettering | 1 | -3/+10 | |
mount_add_default_dependencies() too This deps are very similar to the -pre deps, hence establish them at the same place, in particular as they should only be generated if default deps are on. This allows us to later on remove similar code that adds in these deps whenever /proc/self/mountinfo changes. | |||||
2018-12-07 | mount: remove unnecessary initialization of device_wants_mount and 'if' | Lennart Poettering | 1 | -3/+3 | |
2018-12-07 | mount: use mfree() where appropriate | Lennart Poettering | 1 | -5/+3 | |
2018-12-07 | mount: rename needs_quota() → mount_needs_quota() | Lennart Poettering | 1 | -4/+4 | |
No change of logic, just some renaming, in order to match more closely the naming of the other, similar functions. | |||||
2018-12-07 | mount: merge redundant call mount_needs_network() into mount_is_network() | Lennart Poettering | 1 | -9/+5 | |
2018-12-07 | travis: also compile systemd on Debian Testing | Evgeny Vereshchagin | 2 | -0/+101 | |
This should help to catch issues like https://github.com/systemd/systemd/issues/11075 | |||||
2018-12-07 | man: fix reference to sd_journal_print(3) | Filipe Brandenburger | 1 | -2/+2 | |
The reference in systemd-journald.service(8) was incorrectly pointing to man volume 4 instead of 3. This commit should fix the broken link at https://www.freedesktop.org/software/systemd/man/systemd-journald.service.html | |||||
2018-12-07 | missing: re-add drm related entries | Yu Watanabe | 4 | -4/+12 | |
This effectively reverts dab28f09051445fe370466e767e31652e0804a0f. Fixes #11075. | |||||
2018-12-07 | bash-completion: analyze: support 'security' | Yu Watanabe | 1 | -1/+19 | |
2018-12-07 | missing: add ARPHRD_IP6GRE | Yu Watanabe | 1 | -0/+5 | |
This fixes TYPE field of networkctl's output for ip6gre devices. | |||||
2018-12-07 | af-list,arphrd-list: also include relevant missing_*.h headers | Yu Watanabe | 5 | -5/+8 | |
2018-12-07 | journal: use missing_audit.h to generate audit_type-list.txt | Yu Watanabe | 4 | -11/+9 | |
2018-12-07 | cap-list: use missing_capabilty.h to generate list of capabilities | Yu Watanabe | 1 | -1/+2 | |
2018-12-07 | systemctl: be nice to users and give hint how to specify "-.mount" | Zbigniew Jędrzejewski-Szmek | 1 | -1/+9 | |
https://bugzilla.redhat.com/show_bug.cgi?id=1656639 Using "--" is a trick that is hard to discover. Let's give users a hint: $ build/systemctl status -.service build/systemctl: invalid option -- '.' Hint: to specify units starting with a dash, use "--": build/systemctl [OPTIONS...] {COMMAND} -- -.service ... I use program_invocation_name because that's what getopt seems to use. "::" is used in the option string so that getopt doesn't complain about a missing argument in case somebody passes "-." as the argument. After all "." is not a real option. | |||||
2018-12-07 | shared/blkid-util: do not include util.h needlessly | Zbigniew Jędrzejewski-Szmek | 1 | -4/+2 | |
2018-12-06 | Revert "pager: close all fds when forking off pager" | Yu Watanabe | 1 | -1/+1 | |
This reverts commit 55844aebb60b42f56335eb147dd395269d8fb686. As `exe_name_pipe` are closed by safe_fork(). | |||||
2018-12-06 | test-resolved: fix error code check in assertion | Alexey Bogdanenko | 1 | -1/+1 | |
If file "/etc/hosts" does not exist, fopen fails and sets errno to ENOENT ("No such file or directory"). So errno should be compared with ENOENT. This mistake causes test test-resolved-etc-hosts to fail when run on Debian image built with mkosi.debian included in the repo. The image does not include "/etc/hosts" file as it is not created by debootstrap, see debootstrap manpage https://manpages.debian.org/stretch/debootstrap/debootstrap.8.en.html. | |||||
2018-12-06 | test-network: make search_words_in_file() hit multi words | Yu Watanabe | 1 | -14/+15 | |
2018-12-06 | test-network: delete rules before running next test | Yu Watanabe | 1 | -0/+6 | |
2018-12-06 | test-network: add a line break after starting networkd | Yu Watanabe | 1 | -0/+1 | |
This may be ugly. But otherwise, outputs of several check commands are shown without new line... | |||||
2018-12-06 | test-network: check link before starting dnsmasq | Yu Watanabe | 1 | -27/+18 | |
2018-12-06 | test-network: show command outputs | Yu Watanabe | 1 | -0/+4 | |
2018-12-06 | test-network: sort imported modules | Yu Watanabe | 1 | -4/+4 | |
2018-12-06 | test-network: sort links and units | Yu Watanabe | 1 | -44/+156 | |
2018-12-06 | test-network: fix typo in class name | Yu Watanabe | 1 | -1/+1 | |
2018-12-06 | fd-util: Fix error handling in safe_fclose | Paweł Szewczyk | 1 | -1/+1 | |
Function fclose_nointr returns negative value on error. | |||||
2018-12-06 | tree-wide: drop missing.h from headers and use relevant missing_*.h | Yu Watanabe | 6 | -5/+6 | |
2018-12-06 | lockfile: drop unnecessary headers from lockfile-util.h | Yu Watanabe | 7 | -5/+6 | |
2018-12-06 | nsflsgs: drop missing.h and use missing_sched.h | Yu Watanabe | 2 | -3/+2 | |
2018-12-06 | util: drop missing.h from socket-util.h | Yu Watanabe | 23 | -13/+30 | |
2018-12-06 | util: drop missing.h from time-util.c | Yu Watanabe | 1 | -1/+1 | |
2018-12-06 | missing: move fs or mount related definitions to missing_fs.h | Yu Watanabe | 4 | -61/+66 | |
This also fixes errnous definition MS_REC -> MS_SLAVE. | |||||
2018-12-06 | missing: drop falloc related definitions | Yu Watanabe | 1 | -9/+0 | |
All these values are exposed earlier than linux-3.11. Let's drop them. | |||||
2018-12-06 | missing: move sched.h related definitions to missing_sched.h | Yu Watanabe | 3 | -15/+23 | |
2018-12-06 | missing: drop old drm related definitions | Yu Watanabe | 2 | -8/+4 | |
These values are exposed earlier than linux-3.11. Let's use drm/drm.h. | |||||
2018-12-06 | missing: drop BPF_XOR as we have linux/bpf_common.h | Yu Watanabe | 1 | -4/+0 | |
2018-12-06 | missing: drop DM_DEFERRED_REMOVE as we have dm-ioctl.h | Yu Watanabe | 1 | -4/+0 | |