Re: [systemd-devel] udev 215 creates inactive MD devices upon stopping them

2014-07-24 Thread NeilBrown
On Thu, 24 Jul 2014 23:53:30 +0200 Kay Sievers wrote: > On Thu, Jul 24, 2014 at 5:48 PM, Sebastian Parschauer > wrote: > > > as discussed on linux-raid, please fix the bug that udev 215 creates > > inactive MD devices upon stopping them. > > > > Reference: http://www.spinics.net/lists/raid/msg4

Re: [systemd-devel] Changing configurations with networkd

2014-07-24 Thread Tom Gundersen
On Thu, Jul 24, 2014 at 10:54 PM, Zbigniew Jędrzejewski-Szmek wrote: > On Thu, Jul 24, 2014 at 09:18:14PM +0200, Tom Gundersen wrote: >> A quick fix would be to set >> >> /proc/sys/net/ipv4/conf/all/promote_secondaries >> >> to 1. > Wouldn't it be nice to set it to 1 always. The default setting of

Re: [systemd-devel] udev 215 creates inactive MD devices upon stopping them

2014-07-24 Thread Kay Sievers
On Thu, Jul 24, 2014 at 5:48 PM, Sebastian Parschauer wrote: > as discussed on linux-raid, please fix the bug that udev 215 creates > inactive MD devices upon stopping them. > > Reference: http://www.spinics.net/lists/raid/msg46676.html > Reported-by: Francis Moreau > > An open() call to /dev/md

[systemd-devel] [PATCH] analyze: fix seg-fault with no cl-argument

2014-07-24 Thread Daniel Buch
We need to check if argv[1] is set before compare --- src/analyze/analyze.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index 66e2aab..83da7f5 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -1349,7 +1349,7 @@

Re: [systemd-devel] Changing configurations with networkd

2014-07-24 Thread Kay Sievers
On Thu, Jul 24, 2014 at 10:54 PM, Zbigniew Jędrzejewski-Szmek wrote: > On Thu, Jul 24, 2014 at 09:18:14PM +0200, Tom Gundersen wrote: >> A quick fix would be to set >> >> /proc/sys/net/ipv4/conf/all/promote_secondaries >> >> to 1. > Wouldn't it be nice to set it to 1 always. The default setting of

Re: [systemd-devel] Changing configurations with networkd

2014-07-24 Thread Zbigniew Jędrzejewski-Szmek
On Thu, Jul 24, 2014 at 09:18:14PM +0200, Tom Gundersen wrote: > A quick fix would be to set > > /proc/sys/net/ipv4/conf/all/promote_secondaries > > to 1. Wouldn't it be nice to set it to 1 always. The default setting of 0 is a brain damaged trap. Zbyszek ___

Re: [systemd-devel] [PATCH 7/7] connection: fix user quota accounting corruption

2014-07-24 Thread Djalal Harouni
Hi, It seems there is still another bug in the use/caculation of conn->msg_users_max, will send another patch on top of this. On Wed, Jul 23, 2014 at 10:19:11PM +0100, Djalal Harouni wrote: > First use kzalloc to allocate the users array, so we do not reference > unintialized values. > > And fre

Re: [systemd-devel] Changing configurations with networkd

2014-07-24 Thread Tom Gundersen
On Thu, Jul 24, 2014 at 5:59 PM, Michael Olbrich wrote: > On Thu, Jul 24, 2014 at 02:05:24PM +0200, Marcel Holtmann wrote: >> > Right, I spoke too quickly. What I don't want is to preserve state >> > between reboots, preserving it between restarts of networkd would >> > indeed be fine. We already

[systemd-devel] Networkd dhcp hostname override

2014-07-24 Thread Thomas Suckow
Now that networkd can send the systems hostname to the dhcp server, I would find it useful to have an option to override the hostname that gets sent. In my use case, I would like to setup a number of macvlans with different hostnames. Something as simple as [DHCP] SendHostname=true Hostname=f

[systemd-devel] Forward from linux-raid@ ML: systemd-215 creates inactive MD devices upon stopping them

2014-07-24 Thread Samuli Suominen
Forwarding to systemd-devel@ for http://bugs.gentoo.org/show_bug.cgi?id=517986 Original Message Subject:Re: udev 215 creates inactive MD devices upon stopping them Date: Thu, 24 Jul 2014 17:48:05 +0200 From: Sebastian Parschauer To: systemd-de...@freedesktop.org

Re: [systemd-devel] Changing configurations with networkd

2014-07-24 Thread Michael Olbrich
On Thu, Jul 24, 2014 at 02:05:24PM +0200, Marcel Holtmann wrote: > > Right, I spoke too quickly. What I don't want is to preserve state > > between reboots, preserving it between restarts of networkd would > > indeed be fine. We already serialize the dhcp leases to /run, so I'd > > be happy to take

Re: [systemd-devel] crypttab automount

2014-07-24 Thread Ralf Jung
Hi, >> Essentially, I want a proper mount with the usual RequiredBy and >> WantedBy - but without the Before that makes others wait on this disk. >> So, the concurrency part of automount is exactly what I want, but >> without the on-demand part. Is that possible? > > You're looking for "nofail" w

Re: [systemd-devel] sysusers and login.defs checks

2014-07-24 Thread Colin Guthrie
Colin Guthrie wrote on 24/07/14 13:32: > If direct > parsing is NAKed perhaps it could just shell out to a > systemd-sysusers-getnewuserdetails command which spat out a uid:gid pair > (and took an optional --system argument), that way the parsing logic > only needs to live in one place. This bit,

Re: [systemd-devel] [PATCH] syslog: apply requested datagram size before sysctl

2014-07-24 Thread Kay Sievers
On Thu, Jul 24, 2014 at 10:53 AM, Umut Tezduyar Lindskog wrote: > systemd-sysctl runs after syslog.socket since syslog.socket > has DefaultDependencies=no. Due to this, syslog.socket > is created with default value of net.unix.max_dgram_qlen. > --- > units/syslog.socket |1 + > 1 file changed

Re: [systemd-devel] sysusers and login.defs checks

2014-07-24 Thread Colin Guthrie
Lennart Poettering wrote on 24/07/14 11:59: > ... > snip > ... > I am pretty sure you will find people who will defend some of this > non-sense, but honestly, this is all is stuff that shouldn't exist. OK, that was a fairly convincing message! Many thanks for taking the time and being so explicit.

[systemd-devel] Fwd: race conditions after SIGTERM

2014-07-24 Thread Reindl Harald
maybe that's a systemd thing i know Fedora 19 has not a recent systemd but the question remains if systemctl in case of "Type=simple" may act the same way while stop a service as for starting - send the SIGTERM and immediately return while the binary still writes data that could explain race cond

Re: [systemd-devel] Changing configurations with networkd

2014-07-24 Thread Brendan Hide
On 24/07/14 10:49, Tom Gundersen wrote: On Thu, Jul 24, 2014 at 10:16 AM, Michael Olbrich wrote: On Wed, Jul 23, 2014 at 04:46:26PM +0200, Marcel Holtmann wrote: There is no mandate that the server has to give you the same address after 10 minutes when you ask again. It is valid to just get a

Re: [systemd-devel] Changing configurations with networkd

2014-07-24 Thread Marcel Holtmann
Hi Tom, >> I think the lease should be remembered and reused in this case. > > Hm, this sounds like a bug somewhere. When the new discover is sent > out it should send the same identifying information to the server, and > hence be given the same lease back again. Wireshark sho

Re: [systemd-devel] sysusers and login.defs checks

2014-07-24 Thread Lennart Poettering
On Wed, 23.07.14 21:22, Colin Guthrie (gm...@colin.guthr.ie) wrote: > > Does this make sense? > > To be frank, I really don't think it does make much sense at all. I > mean, something which is currently configured in one place and then > used Well, no, it's not the same setting that is configure

Re: [systemd-devel] [PATCH] syslog: apply requested datagram size before sysctl

2014-07-24 Thread Umut Tezduyar Lindskog
On Thu, Jul 24, 2014 at 11:30 AM, Colin Guthrie wrote: > Umut Tezduyar Lindskog wrote on 24/07/14 09:53: >> systemd-sysctl runs after syslog.socket since syslog.socket >> has DefaultDependencies=no. Due to this, syslog.socket >> is created with default value of net.unix.max_dgram_qlen. >> --- >>

Re: [systemd-devel] sysusers and login.defs checks

2014-07-24 Thread Lennart Poettering
On Wed, 23.07.14 20:50, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > On Wed, Jul 23, 2014 at 07:31:31PM +0200, Lennart Poettering wrote: > > [snip] > > > Now, this alone wouldn't provide compatibility with the dreaded > > login.defs file. For that we'd then employ a postinst scrip

Re: [systemd-devel] [PATCH] syslog: apply requested datagram size before sysctl

2014-07-24 Thread Colin Guthrie
Umut Tezduyar Lindskog wrote on 24/07/14 09:53: > systemd-sysctl runs after syslog.socket since syslog.socket > has DefaultDependencies=no. Due to this, syslog.socket > is created with default value of net.unix.max_dgram_qlen. > --- > units/syslog.socket |1 + > 1 file changed, 1 insertion(+)

[systemd-devel] [PATCH] syslog: apply requested datagram size before sysctl

2014-07-24 Thread Umut Tezduyar Lindskog
systemd-sysctl runs after syslog.socket since syslog.socket has DefaultDependencies=no. Due to this, syslog.socket is created with default value of net.unix.max_dgram_qlen. --- units/syslog.socket |1 + 1 file changed, 1 insertion(+) diff --git a/units/syslog.socket b/units/syslog.socket inde

Re: [systemd-devel] Changing configurations with networkd

2014-07-24 Thread Tom Gundersen
On Thu, Jul 24, 2014 at 10:16 AM, Michael Olbrich wrote: > On Wed, Jul 23, 2014 at 04:46:26PM +0200, Marcel Holtmann wrote: >> Hi Michael, >> >> >>> I think the lease should be remembered and reused in this case. >> >> >> >> Hm, this sounds like a bug somewhere. When the new discover is sent >> >>

Re: [systemd-devel] Changing configurations with networkd

2014-07-24 Thread Michael Olbrich
On Wed, Jul 23, 2014 at 04:46:26PM +0200, Marcel Holtmann wrote: > Hi Michael, > > >>> I think the lease should be remembered and reused in this case. > >> > >> Hm, this sounds like a bug somewhere. When the new discover is sent > >> out it should send the same identifying information to the serv