[systemd-devel] systemd 219 unmounting things unexpectedly

2015-03-29 Thread Steven Noonan
This is weird. I issued a 'mount' command, which succeeds, but then systemd jumps in and immediately unmounts it. What's going on here? Command issued: mount -o loop,ro someisofile.iso /mnt Journal shows this mess: Mar 29 17:39:06 loki systemd[2460]: Unit mnt.mount is bound to inactive unit.

Re: [systemd-devel] systemd 219 unmounting things unexpectedly

2015-03-29 Thread Canek Peláez Valdés
On Sun, Mar 29, 2015 at 6:48 PM, Steven Noonan ste...@uplinklabs.net wrote: This is weird. I issued a 'mount' command, which succeeds, but then systemd jumps in and immediately unmounts it. What's going on here? Command issued: mount -o loop,ro someisofile.iso /mnt Journal shows this

Re: [systemd-devel] systemd 219 unmounting things unexpectedly

2015-03-29 Thread Steven Noonan
I cherry-picked some patches from git, which fixed it, but they are pretty big patches. At least it works now: commit 628c89cc68ab96fce2de7ebba5933725d147aecc Author: Lennart Poettering lenn...@poettering.net Date: Fri Feb 27 21:55:08 2015 +0100 core: rework device state logic This

[systemd-devel] [systemd-219] Journal spamming by umount / high CPU usage

2015-03-29 Thread Kai Krakow
Hello! I've got a automount point for a daily USB backup job. Due to some instabilities of early USB3 chipsets and early USB3 devices, the mounted device sometimes wents offline and eventually comes back after a while but my backup job is stuck (rsync). I configured rsync to shutdown upon

[systemd-devel] [PATCH] nspawn: fallback on bind mount when mknod fails

2015-03-29 Thread Alban Crequy
From: Alban Crequy al...@endocode.com Some systems abusively restrict mknod, even when the device node already exists in /dev. This is unfortunate because it prevents systemd-nspawn from creating the basic devices in /dev in the container. This patch implements a workaround: when mknod fails,

Re: [systemd-devel] [PATCH] nspawn: fallback on bind mount when mknod fails

2015-03-29 Thread Tom Gundersen
On Mar 29, 2015 5:18 PM, Alban Crequy alban.cre...@gmail.com wrote: From: Alban Crequy al...@endocode.com Some systems abusively restrict mknod, even when the device node already exists in /dev. This is unfortunate because it prevents systemd-nspawn from creating the basic devices in /dev in

Re: [systemd-devel] [PATCH] systemd-bootchart: Prevent closing random file descriptors

2015-03-29 Thread Daniel Mack
Hi Alexander, On 03/29/2015 03:04 PM, Alexander Sverdlin wrote: On 29/03/15 13:44, Daniel Mack wrote: @@ -184,6 +185,7 @@ vmstat_next: n = pread(schedstat, buf, sizeof(buf) - 1, 0); if (n = 0) { close(schedstat); +schedstat = 0; Note that 0 is a valid file descriptor number.

Re: [systemd-devel] [PATCH] nspawn: fallback on bind mount when mknod fails

2015-03-29 Thread Alban Crequy
On Sun, Mar 29, 2015 at 5:24 PM, Tom Gundersen t...@jklm.no wrote: On Mar 29, 2015 5:18 PM, Alban Crequy alban.cre...@gmail.com wrote: From: Alban Crequy al...@endocode.com Some systems abusively restrict mknod, even when the device node already exists in /dev. This is unfortunate because

Re: [systemd-devel] [PATCH] systemd-bootchart: Prevent closing random file descriptors

2015-03-29 Thread Kay Sievers
On Sun, Mar 29, 2015 at 5:17 PM, Daniel Mack dan...@zonque.org wrote: On 03/29/2015 03:04 PM, Alexander Sverdlin wrote: On 29/03/15 13:44, Daniel Mack wrote: @@ -184,6 +185,7 @@ vmstat_next: n = pread(schedstat, buf, sizeof(buf) - 1, 0); if (n = 0) { close(schedstat); +

Re: [systemd-devel] [PATCH] systemd-bootchart: Prevent closing random file descriptors

2015-03-29 Thread Alexander Sverdlin
Hello Daniel, On 29/03/15 13:44, Daniel Mack wrote: @@ -184,6 +185,7 @@ vmstat_next: n = pread(schedstat, buf, sizeof(buf) - 1, 0); if (n = 0) { close(schedstat); +schedstat = 0; Note that 0 is a valid file descriptor number. You should

[systemd-devel] OnCalendar every X minutes

2015-03-29 Thread Max
Hi. Is there a way to make timer unit which will execute things every X minutes where X is not divisor for 60? In case of divisor it's obvious: [Timer] OnCalendar=*:00/10 Will run every 10 minutes which nicely fit into 60 minutes hour. What if I would like to run things every 11 minutes: 0,

[systemd-devel] [PATCH] systemd-bootchart: Repair Entropy Graph

2015-03-29 Thread Alexander Sverdlin
Entropy Graph code doesn't handle the error condition if open() of /proc entry fails. Moreover, the file is only opened once and only first sample will contain the correct value because the return value of pread() is also not handled properly and file is not re-opened. Fix both problems. ---

[systemd-devel] systemd 204 to 215 (Debian version) fails to recognize that LVM2 device nodes are already present and accessible

2015-03-29 Thread Dominik Brodowski
Dear systemd developers, In my custom initramfs, lvm vgmknodes successfully creates the device nodes for /dev/vg0/home and /dev/vg0/swap . However, /home is left unmounted and swap is still off. Then, after handing business over to systemd (with /dev re-mounted), and after some services are

[systemd-devel] [PATCH] systemd-bootchart: Prevent leaking file descriptors in open-fdopen combination

2015-03-29 Thread Alexander Sverdlin
Correctly handle the potential failure of fdopen() (because of OOM, for instance) after potentially successful open(). Prevent leaking open fd in such case. --- src/bootchart/store.c | 12 ++-- src/bootchart/svg.c | 9 + 2 files changed, 19 insertions(+), 2 deletions(-) diff

[systemd-devel] [PATCH v2] systemd-bootchart: Prevent closing random file descriptors

2015-03-29 Thread Alexander Sverdlin
If the kernel has no CONFIG_SCHED_DEBUG option set, systemd-bootchart produces empty .svg file. The reason for this is very fragile file descriptor logic in log_sample() and main() (/* do some cleanup, close fd's */ block). There are many places where file descriptors are closed on failure

Re: [systemd-devel] [PATCH] systemd-bootchart: Prevent closing random file descriptors

2015-03-29 Thread Daniel Mack
On 03/29/2015 03:13 AM, Alexander Sverdlin wrote: Fix it by zeroing all the closed descriptors immediately, this would repair existing caching of open files and clean-up strategy. The fix is important even with CONFIG_SCHED_DEBUG option enabled, because very first failure to open /proc/pid/*

[systemd-devel] Different behaviour when sending SIGTERM

2015-03-29 Thread Marcos Mello
Squid is known to be borked when running as a daemon (background): http://bugs.squid-cache.org/show_bug.cgi?id=3826#c12 But still I am experiencing a difference between systemd's built in signal delivery and systemctl kill. # systemctl -l status squid.service * squid.service - Squid Web Proxy

Re: [systemd-devel] OnCalendar every X minutes

2015-03-29 Thread T.C. Hollingsworth
On Mar 29, 2015 9:52 AM, Max maxim.sur...@campus.tu-berlin.de wrote: Hi. Is there a way to make timer unit which will execute things every X minutes where X is not divisor for 60? In case of divisor it's obvious: [Timer] OnCalendar=*:00/10 Will run every 10 minutes which nicely fit into

Re: [systemd-devel] [PATCH] Set the NOCOW flag for the journal via tmpfiles

2015-03-29 Thread Goffredo Baroncelli
Hi, did you find the time to give a look a these patches ? Do you have any suggestions ? BR G.Baroncelli On 2015-03-21 12:56, Goffredo Baroncelli wrote: Hi all, these patches set reverts the commit 11689d2 journald: turn off COW for journal files on btrfs which enables *unconditionally*

Re: [systemd-devel] What requires kmod

2015-03-29 Thread Michael Biebl
Are you sure? units/kmod-static-nodes.service.in ExecStart=@KMOD@ static-nodes --format=tmpfiles --output=/run/tmpfiles.d/kmod.conf 2015-03-30 0:00 GMT+02:00 Jan Engelhardt jeng...@inai.de: systemd/configure.ac has a AC_CHECK_PROG([KMOD]...) but what actually *uses* this? The way

Re: [systemd-devel] OnCalendar every X minutes

2015-03-29 Thread Max
29.03.2015 21:28, T.C. Hollingsworth пишет: On Mar 29, 2015 9:52 AM, Max maxim.sur...@campus.tu-berlin.de mailto:maxim.sur...@campus.tu-berlin.de wrote: Hi. Is there a way to make timer unit which will execute things every X minutes where X is not divisor for 60? In case of

[systemd-devel] What requires kmod

2015-03-29 Thread Jan Engelhardt
systemd/configure.ac has a AC_CHECK_PROG([KMOD]...) but what actually *uses* this? The way it looks, it's all (udev rules) using libkmod directly. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org

Re: [systemd-devel] [PATCH v2] systemd-bootchart: Prevent closing random file descriptors

2015-03-29 Thread Daniel Mack
On 03/29/2015 08:41 PM, Alexander Sverdlin wrote: If the kernel has no CONFIG_SCHED_DEBUG option set, systemd-bootchart produces empty .svg file. The reason for this is very fragile file descriptor logic in log_sample() and main() (/* do some cleanup, close fd's */ block). There are many

[systemd-devel] Masked services start dependencies in any case

2015-03-29 Thread Jan Engelhardt
Thread originated in http://lists.opensuse.org/opensuse-factory/2015-03/msg00419.html On Monday 2015-03-30 01:07, Jan Engelhardt wrote: On Sunday 2015-03-29 20:24, Stefan Seifert wrote: Some time in the last month Tumbleweed lost the ability to boot into runlevel 3 (command line with no X