[systemd-devel] [PATCH 2/2] hwdb: add Chromebook pixel (2015) resolution fix

2015-04-20 Thread Benjamin Tissoires
The atmel driver sets a default resolution of 20 for each touchpads it creates. On this model, 10 is more appropriate. The resolution is not set for the touchscreen by the kernel, so match the name to both touchpad and touchscreen. --- hwdb/60-evdev.hwdb | 7 +++ 1 file changed, 7

[systemd-devel] [PATCH 1/2] hwdb: add evdev entry for the Lenovo X230 series touchpad

2015-04-20 Thread Benjamin Tissoires
The Lenovo X230 advertize a vertical resolution of 136, which gives a true size of 31 mm. The actual physical size of the touchpad is 40 mm, so override the resolution to 100. --- hwdb/60-evdev.hwdb | 5 + 1 file changed, 5 insertions(+) diff --git a/hwdb/60-evdev.hwdb b/hwdb/60-evdev.hwdb

Re: [systemd-devel] networkd-218 seems to ignore .link files

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 13:17, Ian Pilcher (arequip...@gmail.com) wrote: On 04/20/2015 01:06 PM, Lennart Poettering wrote: On Mon, 20.04.15 13:02, Ian Pilcher (arequip...@gmail.com) wrote: I would love to be able to set the MTU of a physical interface in a .network file. Is this possible? (The

Re: [systemd-devel] Zombie process still exists after stopping gdm.service

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 13:16, Daniel Drake (dr...@endlessm.com) wrote: On Mon, Apr 20, 2015 at 9:04 AM, Lennart Poettering lenn...@poettering.net wrote: maybe the main gdm process is not the one waiting, but a worker process is, and the main process kills the worker process without the worker

Re: [systemd-devel] Zombie process still exists after stopping gdm.service

2015-04-20 Thread Marcos Mello
Daniel Drake drake at endlessm.com writes: So, moments after sending 2 SIGTERMs, SIGKILL is sent to all gdm processes. There does not seem to be any consideration of giving the process some time to respond to SIGTERMs, nor the fact that I have hacked gdm.service to have SendSIGKILL=no as an

Re: [systemd-devel] Zombie process still exists after stopping gdm.service

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 18:13, Daniel Drake (dr...@endlessm.com) wrote: 3. gdm simple-slave's signal handler triggers, which causes the mainloop to exit, and it starts to kill and wait for the X server death. I'm not exactly sure why, but quitting the glib mainloop also causes the signal handler

Re: [systemd-devel] [PATCH v4 0/4] udev: Add builtin and hwdb files for setting pointingstick properties

2015-04-20 Thread Peter Hutterer
On Mon, Apr 20, 2015 at 10:24:35AM +0200, David Herrmann wrote: Hi On Fri, Apr 17, 2015 at 4:48 PM, Hans de Goede hdego...@redhat.com wrote: Hi All, Here is v4 of my pointstick set. Changes since v3: -Use the existing evdev matching rules -Make setting the sensitivity part of the

Re: [systemd-devel] [systemd-commits] man/systemd.netdev.xml src/libsystemd src/network

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 15:27, Tom Gundersen (tome...@kemper.freedesktop.org) wrote: + varlistentry +termvarnameLearnPacketIntvSec,=/varname/term +listitem + paraSpecifies the number of seconds between instances where the bonding + driver sends learning

Re: [systemd-devel] Setting up network interfaces for containers with --private-network

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 15:25, Spencer Baugh (sba...@catern.com) wrote: Hi, Currently, I can manually set up (or set up with a script) a veth, then move it in to a systemd-nspawn container with --network-interface. However, if the container tries to restart (or exits and needs to be restarted),

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-20 Thread Lennart Poettering
On Thu, 16.04.15 19:30, Lennart Poettering (lenn...@poettering.net) wrote: I will grant you though that it is confusing that we use SD_BUS_CREDS_AUGMENT here like this, and implicitly rely on that the selinux label is not a field that is being augmented. We should make this explicit,

Re: [systemd-devel] [RFC] core: introduce ExitOnIdle= and ExitOnIdleSec=

2015-04-20 Thread Lennart Poettering
On Tue, 21.04.15 07:56, Kyungmin Park (kmp...@infradead.org) wrote: On Tue, Apr 21, 2015 at 12:10 AM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 20.04.15 23:56, WaLyong Cho (walyong@samsung.com) wrote: If a service does not consume CPU during some time(can be configured

Re: [systemd-devel] [PATCH] networkd: fix systemd-networkd-wait-online with multiple NICs

2015-04-20 Thread Tom Gundersen
On Wed, Mar 25, 2015 at 9:49 PM, misch...@offblast.org wrote: From: mischief misch...@offblast.org when checking interface status, systemd-networkd-wait-online will continue to wait if any interface is still configuring or being processed by udev. this patch allows it to return if any one

Re: [systemd-devel] [PATCH 2/2] udev: Allow detection of udevadm settle timeout

2015-04-20 Thread Tom Gundersen
On Mon, Apr 13, 2015 at 3:04 PM, Nir Soffer nir...@gmail.com wrote: On Sat, Apr 11, 2015 at 6:58 PM, David Herrmann dh.herrm...@gmail.com wrote: A program running this tool can detect a timeout (expected) or an error (unexpected), and can change the program flow based on this result. Without

Re: [systemd-devel] [RFC] core: introduce ExitOnIdle= and ExitOnIdleSec=

2015-04-20 Thread Kyungmin Park
On Tue, Apr 21, 2015 at 8:37 AM, Lennart Poettering lenn...@poettering.net wrote: On Tue, 21.04.15 07:56, Kyungmin Park (kmp...@infradead.org) wrote: On Tue, Apr 21, 2015 at 12:10 AM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 20.04.15 23:56, WaLyong Cho

Re: [systemd-devel] [PATCH] importd: add CAP_DAC_OVERRIDE capability

2015-04-20 Thread Lennart Poettering
On Mon, 13.04.15 19:46, Lubomir Rintel (lkund...@v3.sk) wrote: Fedora's filesystem package ships /usr/bin (and other directories) which are not writable by its owner. machinectl pull-dkr (and possibly others) are not able to extract those: Thanks! Applied! 14182 mkdirat(3, usr, 0700)

Re: [systemd-devel] [PATCH] [RFC] umount: reduce verbosity

2015-04-20 Thread Lennart Poettering
On Mon, 13.04.15 13:13, Alban Crequy (alban.cre...@gmail.com) wrote: From: Alban Crequy al...@endocode.com When a systemd-nspawn container terminates, systemd umounts all bind mounts that were mounted in the container and generates a log for each umount. This additional log_info was

Re: [systemd-devel] Zombie process still exists after stopping gdm.service

2015-04-20 Thread Daniel Drake
On Mon, Apr 20, 2015 at 6:04 PM, Lennart Poettering lenn...@poettering.net wrote: I have stepped through and I think that systemd is being too aggressive. Still running with the default KillMode=cgroup, here is what happens: 1. service_enter_stop() is entered which calls:

Re: [systemd-devel] [RFC] core: introduce ExitOnIdle= and ExitOnIdleSec=

2015-04-20 Thread Kyungmin Park
On Tue, Apr 21, 2015 at 12:10 AM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 20.04.15 23:56, WaLyong Cho (walyong@samsung.com) wrote: If a service does not consume CPU during some time(can be configured by ExitOnIdleSec=) and set to stopped on idle state(ExitOnIdle=), the

Re: [systemd-devel] [RFC] core: introduce ExitOnIdle= and ExitOnIdleSec=

2015-04-20 Thread Lennart Poettering
On Tue, 21.04.15 09:21, Kyungmin Park (kmp...@infradead.org) wrote: Well, we should make sure to not encourage people to write suboptimal. And such an external timer-based notification is necessarily suboptimal code: a well-behaving daemon would set a timer the moment it notices it is

Re: [systemd-devel] [PATCH 2/2] hwdb: add Chromebook pixel (2015) resolution fix

2015-04-20 Thread Peter Hutterer
On Mon, Apr 20, 2015 at 06:01:53PM -0400, Benjamin Tissoires wrote: The atmel driver sets a default resolution of 20 for each touchpads it creates. On this model, 10 is more appropriate. The resolution is not set for the touchscreen by the kernel, so match the name to both touchpad and

Re: [systemd-devel] Setting up network interfaces for containers with --private-network

2015-04-20 Thread Spencer Baugh
Lennart Poettering lenn...@poettering.net writes: On Mon, 20.04.15 15:25, Spencer Baugh (sba...@catern.com) wrote: So far I'd recommend running networkd on the host and in the container. If you run it on the host, then it will automatically configure the hos side of each of nspawn's veth links

Re: [systemd-devel] networkd-218 seems to ignore .link files

2015-04-20 Thread Andrew Cooks
On Tue, Apr 21, 2015 at 12:40 AM, Lennart Poettering lenn...@poettering.net wrote: On Wed, 15.04.15 01:08, Andrew Cooks (aco...@linux.com) wrote: On Tue, Jan 13, 2015 at 6:46 AM, Jan Engelhardt jeng...@inai.de wrote: On Monday 2015-01-12 18:29, Tom Gundersen wrote: In

[systemd-devel] systemd and process migration

2015-04-20 Thread Adrian Reber
Using CRIU I have been migrating processes from one system to another for the last few months (even years). I am now interested in migrating processes under systemd's control. Before starting to look how to make it work I wanted to know if there has been any discussion if and how systemd and CRIU

Re: [systemd-devel] [PATCH v4 0/4] udev: Add builtin and hwdb files for setting pointingstick properties

2015-04-20 Thread David Herrmann
Hi On Fri, Apr 17, 2015 at 4:48 PM, Hans de Goede hdego...@redhat.com wrote: Hi All, Here is v4 of my pointstick set. Changes since v3: -Use the existing evdev matching rules -Make setting the sensitivity part of the evdev builtin (which is called keyboard for historical reasons)

[systemd-devel] [PATCH] journal: Introduce journal-netlogd

2015-04-20 Thread Susant Sahani
This tiny daemon forwards messages from the journal to other hosts over the network using the traditional syslog format RFC 5424. It can be configured to send messages to both unicast and multicast addresses. systemd-journal-netlogd runs with own user systemd-journal-netlog. It

[systemd-devel] mounting loop

2015-04-20 Thread Christian Hesse
Hello everybody, with systemd 219 mounting a filesystem image in loopback mode fails. Using these command: # truncate -s 1G /tmp/test.img # mkfs.ext4 /tmp/test.img [...] # mount -o loop /tmp/test.img /mnt/tmp systemd umounts the image as it thinks it is inactive: Apr 20 08:54:28 leda

Re: [systemd-devel] [PATCH 1/3] rules: Enable runtime device power management on Intel HDA controllers

2015-04-20 Thread Greg KH
On Sun, Apr 19, 2015 at 10:46:40PM +0100, Matthew Garrett wrote: I'm not convinced that any such broad matches for power management belong into udev at all. Udev can carry specific device matches, or carry data that cannot be determined from the device itself, like the mouse resolution and

Re: [systemd-devel] [PATCH v4 2/4] udev: keyboard-builtin: Add support for setting IBM trackpoint sensitivity

2015-04-20 Thread David Herrmann
Hi On Fri, Apr 17, 2015 at 4:48 PM, Hans de Goede hdego...@redhat.com wrote: IBM / Lenovo trackpoints allow specifying a sensitivity setting through a ps/2 command, which changes the range of the deltas sent when using the trackpoint. On some models with normal usage only deltas of 1 or 2

Re: [systemd-devel] [PATCH] udev: Restore udevadm settle timeout

2015-04-20 Thread David Herrmann
Hi On Sat, Apr 11, 2015 at 9:38 PM, Nir Soffer nir...@gmail.com wrote: On Sat, Apr 11, 2015 at 1:36 PM, David Herrmann dh.herrm...@gmail.com wrote: @@ -139,6 +142,9 @@ static int adm_settle(struct udev *udev, int argc, char *argv[]) { break; }

Re: [systemd-devel] [PATCH] journal: Introduce journal-syslogd

2015-04-20 Thread Susant Sahani
Sorry for the late reply On 04/14/2015 10:46 AM, Zbigniew Jędrzejewski-Szmek wrote: On Thu, Apr 09, 2015 at 11:43:15PM +0530, Susant Sahani wrote: This tiny daemon enables to pull journal entries and push to a UDP multicast address in syslog RFC 5424 format. systemd-journal-syslogd runs

Re: [systemd-devel] controlling serial console using a token

2015-04-20 Thread Andrei Borzenkov
On Mon, Apr 20, 2015 at 7:15 AM, Praveen kumar R praveenrgo...@gmail.com wrote: You mean in the getty-generator.c ? I actually mean your own customer generator. On Mon, Apr 20, 2015 at 9:14 AM, Andrei Borzenkov arvidj...@gmail.com wrote: В Mon, 20 Apr 2015 09:09:09 +0530 Praveen kumar R

Re: [systemd-devel] Zombie process still exists after stopping gdm.service

2015-04-20 Thread Lennart Poettering
On Sun, 19.04.15 09:34, Andrei Borzenkov (arvidj...@gmail.com) wrote: В Fri, 17 Apr 2015 14:04:18 -0600 Daniel Drake dr...@endlessm.com пишет: Hi, I'm investigating why systemctl stop gdm; Xorg usually fails. The new X process complains that X is still running. Here's what I

Re: [systemd-devel] systemd and process migration

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 14:33, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: On 04/20/2015 01:58 PM, Lennart Poettering wrote: systemd has no provisions for anything like this and I have doubts it really should have. I mean, normal programs retain ccess to the cgroup tree, so you could readd

Re: [systemd-devel] systemd and process migration

2015-04-20 Thread Jóhann B. Guðmundsson
On 04/20/2015 02:35 PM, Lennart Poettering wrote: On Mon, 20.04.15 14:33, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: On 04/20/2015 01:58 PM, Lennart Poettering wrote: systemd has no provisions for anything like this and I have doubts it really should have. I mean, normal programs

Re: [systemd-devel] [PATCH 2/3] journal: use audit event names instead of numbers

2015-04-20 Thread Lennart Poettering
On Tue, 14.04.15 21:58, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: +const char *audit_type_name(int type, +char buf[AUDIT_NAME_BUF_SIZE]) { +const char *s; + +s = audit_type_to_string(type); +if (s) +return s;

Re: [systemd-devel] systemd and process migration

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 14:59, Adrian Reber (adr...@lisas.de) wrote: Using CRIU I have been migrating processes from one system to another for the last few months (even years). I am now interested in migrating processes under systemd's control. Before starting to look how to make it work I wanted to

Re: [systemd-devel] Adopt processes spawned before /lib/systemd/systemd takes over as PID 1?

2015-04-20 Thread Lennart Poettering
On Fri, 17.04.15 22:29, Matt Hoosier (matt.hoos...@gmail.com) wrote: Thanks, I hadn't found that presentation before. My board is essentially a Panda ES, with gigabytes of RAM. A small point of clarification: when I say that systemd takes 1.5 seconds, I'm referring to the time that elapses

Re: [systemd-devel] Zombie process still exists after stopping gdm.service

2015-04-20 Thread Lennart Poettering
On Fri, 17.04.15 14:04, Daniel Drake (dr...@endlessm.com) wrote: I'm investigating why systemctl stop gdm; Xorg usually fails. The new X process complains that X is still running. Have you checked what precisely fails? What's the error message you are getting? What is the actual failing

Re: [systemd-devel] [PATCH 2/3] journal: use audit event names instead of numbers

2015-04-20 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Apr 20, 2015 at 04:43:20PM +0200, Lennart Poettering wrote: On Tue, 14.04.15 21:58, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: +const char *audit_type_name(int type, +char buf[AUDIT_NAME_BUF_SIZE]) { +const char *s; + +s

Re: [systemd-devel] [RFC] core: introduce ExitOnIdle= and ExitOnIdleSec=

2015-04-20 Thread Camilo Aguilar
This will be nice to have. On Mon, Apr 20, 2015 at 10:56 AM WaLyong Cho walyong@samsung.com wrote: If a service does not consume CPU during some time(can be configured by ExitOnIdleSec=) and set to stopped on idle state(ExitOnIdle=), the service will be stopped. This can be useful if the

Re: [systemd-devel] systemd and process migration

2015-04-20 Thread Jóhann B. Guðmundsson
On 04/20/2015 02:49 PM, Lennart Poettering wrote: On Mon, 20.04.15 14:43, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: I thought fancy enterprise features like this was on hold until networkd was ready ? This is not an enterprise feature. It's a promise one cannot keep. We will not add

Re: [systemd-devel] [RFC] core: introduce ExitOnIdle= and ExitOnIdleSec=

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 23:56, WaLyong Cho (walyong@samsung.com) wrote: If a service does not consume CPU during some time(can be configured by ExitOnIdleSec=) and set to stopped on idle state(ExitOnIdle=), the service will be stopped. This can be useful if the service provides some of

Re: [systemd-devel] systemd and process migration

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 14:43, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: I thought fancy enterprise features like this was on hold until networkd was ready ? This is not an enterprise feature. It's a promise one cannot keep. We will not add code to systemd that works often but not always,

Re: [systemd-devel] Zombie process still exists after stopping gdm.service

2015-04-20 Thread Daniel Drake
On Mon, Apr 20, 2015 at 8:24 AM, Lennart Poettering lenn...@poettering.net wrote: On Sun, 19.04.15 09:34, Andrei Borzenkov (arvidj...@gmail.com) wrote: В Fri, 17 Apr 2015 14:04:18 -0600 Daniel Drake dr...@endlessm.com пишет: Hi, I'm investigating why systemctl stop gdm; Xorg usually

Re: [systemd-devel] Advice on sending patches

2015-04-20 Thread Lennart Poettering
On Thu, 16.04.15 15:00, Adam Goode (ago...@google.com) wrote: Hi, I have 2 patches I am interested in getting reviewed. Can someone please take a look? I am not sure the correct protocol for doing this. They are here:

Re: [systemd-devel] [PATCH 1/3] journal: add int↔audit type name mapping

2015-04-20 Thread Lennart Poettering
On Tue, 14.04.15 21:58, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: +src/journal/audit_type-list.txt: + $(AM_V_at)$(MKDIR_P) $(dir $@) + $(AM_V_GEN)$(CPP) $(CFLAGS) $(AM_CPPFLAGS) $(CPPFLAGS) -dM -include linux/audit.h - /dev/null | grep -vE 'AUDIT_(FIRST|LAST)_.*MSG' |

Re: [systemd-devel] [PATCH 2/3] journal: use audit event names instead of numbers

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 14:58, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: On Mon, Apr 20, 2015 at 04:43:20PM +0200, Lennart Poettering wrote: On Tue, 14.04.15 21:58, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: +const char *audit_type_name(int type, +

Re: [systemd-devel] Zombie process still exists after stopping gdm.service

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 08:54, Daniel Drake (dr...@endlessm.com) wrote: gdm git does have KillMode=mixed, but the slightly old gdm I'm running here also does not have any KillMode assignment. KillMode=mixed means that systemd will SIGKILL all cgroup member processes before stop returns. I'm

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-20 Thread Lennart Poettering
On Fri, 17.04.15 13:43, Simon McVittie (simon.mcvit...@collabora.co.uk) wrote: On 16/04/15 15:52, Andy Lutomirski wrote: (I really think this dichotomy needs to be removed, *especially* since it looks like code already exists to try to use both metadata sources. This seems like it's just

Re: [systemd-devel] controlling serial console using a token

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 13:06, Andrei Borzenkov (arvidj...@gmail.com) wrote: On Mon, Apr 20, 2015 at 7:15 AM, Praveen kumar R praveenrgo...@gmail.com wrote: You mean in the getty-generator.c ? I actually mean your own customer generator. For details see:

Re: [systemd-devel] Adopt processes spawned before /lib/systemd/systemd takes over as PID 1?

2015-04-20 Thread Lennart Poettering
On Fri, 17.04.15 14:06, Matt Hoosier (matt.hoos...@gmail.com) wrote: The bootcharting that I do seems to show that about 1.2 - 1.5 sec are spent internal to systemd before any external processes get run for the particular embedded CPU I'm using. That gap is a killer at the moment. I'm sure

[systemd-devel] [RFC] core: introduce ExitOnIdle= and ExitOnIdleSec=

2015-04-20 Thread WaLyong Cho
If a service does not consume CPU during some time(can be configured by ExitOnIdleSec=) and set to stopped on idle state(ExitOnIdle=), the service will be stopped. This can be useful if the service provides some of activation methods. --- src/core/load-fragment-gperf.gperf.m4 | 2 +

Re: [systemd-devel] systemd and process migration

2015-04-20 Thread Jóhann B. Guðmundsson
On 04/20/2015 01:58 PM, Lennart Poettering wrote: systemd has no provisions for anything like this and I have doubts it really should have. I mean, normal programs retain ccess to the cgroup tree, so you could readd whatever you restore back in the cgroups, but that's hardly sufficient to make

Re: [systemd-devel] [PATCH 3/3] journal: include user space audit types in the list

2015-04-20 Thread Lennart Poettering
On Tue, 14.04.15 21:58, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: +audit_list_includes = -include linux/audit.h +if HAVE_AUDIT +audit_list_includes += -include libaudit.h +endif And missing.h too here, please (as mentioned in the other review) Lennart -- Lennart Poettering,

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-20 Thread Lennart Poettering
On Fri, 17.04.15 09:14, Andy Lutomirski (l...@amacapital.net) wrote: My point here is that there's no real shortage of downsides to this scheme, and there still appears to be little to no benefit. Well, let's turn this around. You seem to really dislike caps. And you vaguely claim security

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-20 Thread Andy Lutomirski
On Apr 20, 2015 7:57 AM, Lennart Poettering lenn...@poettering.net wrote: On Fri, 17.04.15 09:14, Andy Lutomirski (l...@amacapital.net) wrote: My point here is that there's no real shortage of downsides to this scheme, and there still appears to be little to no benefit. Well, let's turn

Re: [systemd-devel] networkd-218 seems to ignore .link files

2015-04-20 Thread Ian Pilcher
On 01/12/2015 05:38 PM, Tom Gundersen wrote: Some of the .link settings may make sense to tweak also per-network, in which case we support changing them in .network files. I would love to be able to set the MTU of a physical interface in a .network file. Is this possible? (The

Re: [systemd-devel] Socket activation of container with private network

2015-04-20 Thread Spencer Baugh
Lennart Poettering lenn...@poettering.net writes: On Mon, 20.04.15 13:01, Spencer Baugh (sba...@catern.com) wrote: Lennart Poettering lenn...@poettering.net writes: Hmm, so you say the initial connection does not work but triggers the container, but the subsequent one will? Not quite; the

Re: [systemd-devel] udev interface naming for SR-IOV VFs

2015-04-20 Thread Tom Gundersen
On Tue, Apr 14, 2015 at 12:11 PM, Ido Barkan ibar...@redhat.com wrote: We are implementing support for SR-IOV network cards. Afer the changing of the number of VFs on the card and programmatically querying for all links (we use libnl for this) we observe that *during the iteration* over the

Re: [systemd-devel] Adopt processes spawned before /lib/systemd/systemd takes over as PID 1?

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 12:12, Matt Hoosier (matt.hoos...@gmail.com) wrote: inexperienced poking around the internal default suite of units packaged with systemd. This is not available, though often requested. But I doubt this can ever work, since running before 'everything' or running after

Re: [systemd-devel] networkd-218 seems to ignore .link files

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 13:02, Ian Pilcher (arequip...@gmail.com) wrote: On 01/12/2015 05:38 PM, Tom Gundersen wrote: Some of the .link settings may make sense to tweak also per-network, in which case we support changing them in .network files. I would love to be able to set the MTU of a physical

Re: [systemd-devel] [PATCH] networkd vxlan: Add support for enabling UDP checksums

2015-04-20 Thread Tom Gundersen
Sorry for the delay. Applied. Thanks! Tom On Thu, Mar 5, 2015 at 5:32 PM, Susant Sahani sus...@redhat.com wrote: Add UDPCheckSum option to enable transmitting UDP checksums when doing VXLAN/IPv4. Add UDP6ZeroChecksumRx, and UDP6ZeroChecksumTx options to enable sending zero checksums and

Re: [systemd-devel] [PATCH] networkd: Add support for bond option.

2015-04-20 Thread Tom Gundersen
Sorry for the delay. Applied. Thanks! Tom On Mon, Mar 9, 2015 at 10:58 AM, Susant Sahani sus...@redhat.com wrote: This patch adds configurational support for bond option. Test conf: bond.netdev --- [NetDev] Name=bond1 Kind=bond [Bond] ArpAllTargets=all PrimaryReselect=better

Re: [systemd-devel] networkd-218 seems to ignore .link files

2015-04-20 Thread Ian Pilcher
On 04/20/2015 01:06 PM, Lennart Poettering wrote: On Mon, 20.04.15 13:02, Ian Pilcher (arequip...@gmail.com) wrote: I would love to be able to set the MTU of a physical interface in a .network file. Is this possible? (The systemd.network(5) doesn't list it.) Yes, this is supported via MTU=.

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 08:08, Andy Lutomirski (l...@amacapital.net) wrote: On Apr 20, 2015 7:57 AM, Lennart Poettering lenn...@poettering.net wrote: On Fri, 17.04.15 09:14, Andy Lutomirski (l...@amacapital.net) wrote: My point here is that there's no real shortage of downsides to this

Re: [systemd-devel] [RFC] core: introduce ExitOnIdle= and ExitOnIdleSec=

2015-04-20 Thread WaLyong Cho
On 04/21/2015 12:10 AM, Lennart Poettering wrote: On Mon, 20.04.15 23:56, WaLyong Cho (walyong@samsung.com) wrote: If a service does not consume CPU during some time(can be configured by ExitOnIdleSec=) and set to stopped on idle state(ExitOnIdle=), the service will be stopped. This can

Re: [systemd-devel] [PATCH 1/2] Don't use ALSA card id in ID_ID

2015-04-20 Thread Lennart Poettering
On Fri, 10.04.15 22:27, Adam Goode (ago...@google.com) wrote: The ALSA id sysattr is generated by the sound subsystem and is not a stable identifier. It is generated though some string manipulation then made unique if there is a conflict. This means that it is enumeration-dependent and

Re: [systemd-devel] [PATCH 2/2] Add more firewire properties for sound, to be closer to USB and PCI

2015-04-20 Thread Lennart Poettering
On Fri, 10.04.15 22:27, Adam Goode (ago...@google.com) wrote: USB and PCI soundcards have a nice set of ID_* properties. It would be handy for firewire soundcards to have the same. --- rules/78-sound-card.rules | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git

Re: [systemd-devel] [PATCH 1/3] rules: Enable runtime device power management on Intel HDA controllers

2015-04-20 Thread David Herrmann
Hi On Sun, Apr 19, 2015 at 11:46 PM, Matthew Garrett mj...@srcf.ucam.org wrote: On Sun, Apr 19, 2015 at 11:37:31PM +0200, Kay Sievers wrote: I'm not convinced that any such broad matches for power management belong into udev at all. Udev can carry specific device matches, or carry data that

Re: [systemd-devel] networkd-218 seems to ignore .link files

2015-04-20 Thread Lennart Poettering
On Wed, 15.04.15 01:08, Andrew Cooks (aco...@linux.com) wrote: On Tue, Jan 13, 2015 at 6:46 AM, Jan Engelhardt jeng...@inai.de wrote: On Monday 2015-01-12 18:29, Tom Gundersen wrote: In systemd-218, I have configured the following testcase: /etc/systemd/network# ls -al total 20

Re: [systemd-devel] [PATCH] udev: Fix ping timeout when settle timeout is 0

2015-04-20 Thread David Herrmann
Hi On Sun, Apr 19, 2015 at 1:49 AM, Nir Soffer nir...@gmail.com wrote: When running udevadm settle --timeout=0, the ping always times out, and udevadm will return 0 without checking the queue state. Since zero timeout is considered as unlimited timeout, we use now unlimited ping timeout.

Re: [systemd-devel] [PATCH v3 2/2] udev: Skip ping if timeout is 0

2015-04-20 Thread David Herrmann
Hi On Sun, Apr 19, 2015 at 2:41 AM, Nir Soffer nir...@gmail.com wrote: When running udevadm settle --timeout=0, udev_ctrl_send_ping always times out, and settle returns 0 without checking the queue. Now we skip ping in this case, and return the queue state. --- src/udev/udevadm-settle.c |

Re: [systemd-devel] udev interface naming for SR-IOV VFs

2015-04-20 Thread Kay Sievers
On Tue, Apr 14, 2015 at 12:11 PM, Ido Barkan ibar...@redhat.com wrote: Hi all, I am VDSM developer in the Ovirt project. We are implementing support for SR-IOV network cards. Afer the changing of the number of VFs on the card and programmatically querying for all links (we use libnl for

Re: [systemd-devel] [PATCH v3 1/2] udev: settle should return immediately when timeout is 0

2015-04-20 Thread David Herrmann
Hi On Sun, Apr 19, 2015 at 2:41 AM, Nir Soffer nir...@gmail.com wrote: udevadm manual says: A value of 0 will check if the queue is empty and always return immediately. However, currently we ignore the deadline if the value is 0, and wait without any limit. Zero timeout behaved

Re: [systemd-devel] Adopt processes spawned before /lib/systemd/systemd takes over as PID 1?

2015-04-20 Thread Matt Hoosier
On Mon, Apr 20, 2015 at 9:11 AM, Lennart Poettering lenn...@poettering.net wrote: On Fri, 17.04.15 14:06, Matt Hoosier (matt.hoos...@gmail.com) wrote: The bootcharting that I do seems to show that about 1.2 - 1.5 sec are spent internal to systemd before any external processes get run for

Re: [systemd-devel] Problem with intermediate target

2015-04-20 Thread Lennart Poettering
On Thu, 16.04.15 17:10, Christoph Pleger (christoph.ple...@cs.tu-dortmund.de) wrote: Hello, I wrote: Sounds like you want to create intermediate.target, change default.target to point at it, boot all the way up to intermediate.target, and at that point isolate or start

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-20 Thread Andy Lutomirski
On Apr 20, 2015 9:07 AM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 20.04.15 08:51, Andy Lutomirski (l...@amacapital.net) wrote: I will grant you that they aren't particularly expressive, and I will grant you that one day there might be better concepts. But that's not

Re: [systemd-devel] systemd and process migration

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 15:10, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: On 04/20/2015 02:49 PM, Lennart Poettering wrote: On Mon, 20.04.15 14:43, Jóhann B. Guðmundsson (johan...@gmail.com) wrote: I thought fancy enterprise features like this was on hold until networkd was ready ? This

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-20 Thread Lennart Poettering
On Fri, 17.04.15 08:52, Josh Triplett (j...@joshtriplett.org) wrote: On Thu, Apr 16, 2015 at 08:23:45PM +0200, Lennart Poettering wrote: Now, to put together a more complex scenario for you: consider a small web UI that can be used to set the system time. It should realy run at minimal

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-20 Thread Josh Triplett
On April 20, 2015 8:39:33 AM PDT, Lennart Poettering lenn...@poettering.net wrote: On Fri, 17.04.15 08:52, Josh Triplett (j...@joshtriplett.org) wrote: On Thu, Apr 16, 2015 at 08:23:45PM +0200, Lennart Poettering wrote: Now, to put together a more complex scenario for you: consider a small

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 08:51, Andy Lutomirski (l...@amacapital.net) wrote: I will grant you that they aren't particularly expressive, and I will grant you that one day there might be better concepts. But that's not a strong reason not to support them really, that's just a reason to

Re: [systemd-devel] Failed to create directory or subvolume /var/lib/machines: Invalid argument

2015-04-20 Thread Lennart Poettering
On Thu, 16.04.15 18:48, Andrey Wagin (ava...@gmail.com) wrote: Hello Lennart, I read the v218-283-gd7b8eec commit and found that you expected that BTRFS_IOC_SUBVOL_CREATE returns ENOTTY if sub-volumes are not supported. But in the compat-mode this ioctl returns EINVAL. For example:

Re: [systemd-devel] SD_BUS_VTABLE_CAPABILITY

2015-04-20 Thread Andy Lutomirski
On Apr 20, 2015 8:22 AM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 20.04.15 08:08, Andy Lutomirski (l...@amacapital.net) wrote: On Apr 20, 2015 7:57 AM, Lennart Poettering lenn...@poettering.net wrote: On Fri, 17.04.15 09:14, Andy Lutomirski (l...@amacapital.net) wrote:

Re: [systemd-devel] Socket activation of container with private network

2015-04-20 Thread Lennart Poettering
On Fri, 17.04.15 23:27, sba...@catern.com (sba...@catern.com) wrote: Hi, I am having trouble with socket-activated containers, where the socket is first opened outside the container, on an interface/IP address that is then passed in to the container. In short, when I try to ssh to the IP

Re: [systemd-devel] Problem with intermediate target

2015-04-20 Thread Dimitri John Ledkov
On 18 April 2015 at 09:39, Christoph Pleger christoph.ple...@cs.tu-dortmund.de wrote: Hello, Why does systemd start this service before /var is mounted, though the service should be executed after remote-fs.target, and remote-fs.target comes after local-fs.target? Because remote-fs.target

Re: [systemd-devel] systemd and process migration

2015-04-20 Thread Dimitri John Ledkov
Heya, On 20 April 2015 at 06:59, Adrian Reber adr...@lisas.de wrote: Using CRIU I have been migrating processes from one system to another for the last few months (even years). I am now interested in migrating processes under systemd's control. Before starting to look how to make it work I

Re: [systemd-devel] [systemd-commits] 2 commits - src/libsystemd-network

2015-04-20 Thread Lennart Poettering
On Tue, 14.04.15 09:33, Thomas H.P. Andersen (pho...@kemper.freedesktop.org) wrote: src/libsystemd-network/sd-dhcp6-client.c |2 ++ src/libsystemd-network/test-dhcp6-client.c |2 -- 2 files changed, 2 insertions(+), 2 deletions(-) New commits: commit

Re: [systemd-devel] [PATCH 1/2] Don't use ALSA card id in ID_ID

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 20:00, Lennart Poettering (lenn...@poettering.net) wrote: On Fri, 10.04.15 22:27, Adam Goode (ago...@google.com) wrote: The ALSA id sysattr is generated by the sound subsystem and is not a stable identifier. It is generated though some string manipulation then made

Re: [systemd-devel] Socket activation of container with private network

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 14:15, Spencer Baugh (sba...@catern.com) wrote: Lennart Poettering lenn...@poettering.net writes: On Mon, 20.04.15 13:01, Spencer Baugh (sba...@catern.com) wrote: Lennart Poettering lenn...@poettering.net writes: Hmm, so you say the initial connection does not work but

Re: [systemd-devel] [PATCH] journal: don't complain about audit socket errors in a container.

2015-04-20 Thread Lennart Poettering
On Wed, 15.04.15 00:22, Frank Thalberg (frankthalb...@ruggedinbox.com) wrote: nspawn at least grants audit caps to containers. If you don't grant audit caps you cannot boot distros like Fedora at all, since much of the PAM audit code in Fedora is written to fail completely if audit is on

Re: [systemd-devel] [PATCH 1/2] Don't use ALSA card id in ID_ID

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 20:39, Lennart Poettering (lenn...@poettering.net) wrote: On Mon, 20.04.15 20:00, Lennart Poettering (lenn...@poettering.net) wrote: On Fri, 10.04.15 22:27, Adam Goode (ago...@google.com) wrote: The ALSA id sysattr is generated by the sound subsystem and is not a

Re: [systemd-devel] udev interface naming for SR-IOV VFs

2015-04-20 Thread Lennart Poettering
On Fri, 17.04.15 14:19, Nir Soffer (nir...@gmail.com) wrote: - You may wait for unrelated events that happen to trigger in the same time, waiting after the new interfaces are ready. I think you need something like: while True: try: udevadm.settle(1)

Re: [systemd-devel] [PATCH 1/3] rules: Enable runtime device power management on Intel HDA controllers

2015-04-20 Thread Kay Sievers
On Mon, Apr 20, 2015 at 8:11 PM, David Herrmann dh.herrm...@gmail.com wrote: Hi On Sun, Apr 19, 2015 at 11:46 PM, Matthew Garrett mj...@srcf.ucam.org wrote: On Sun, Apr 19, 2015 at 11:37:31PM +0200, Kay Sievers wrote: I'm not convinced that any such broad matches for power management belong

Re: [systemd-devel] Zombie process still exists after stopping gdm.service

2015-04-20 Thread Daniel Drake
On Mon, Apr 20, 2015 at 9:04 AM, Lennart Poettering lenn...@poettering.net wrote: maybe the main gdm process is not the one waiting, but a worker process is, and the main process kills the worker process without the worker process handling that nicely? Not really. I removed all the

Re: [systemd-devel] [PATCH 2/2] Add more firewire properties for sound, to be closer to USB and PCI

2015-04-20 Thread Adam Goode
On Mon, Apr 20, 2015 at 2:04 PM, Lennart Poettering lenn...@poettering.net wrote: On Fri, 10.04.15 22:27, Adam Goode (ago...@google.com) wrote: USB and PCI soundcards have a nice set of ID_* properties. It would be handy for firewire soundcards to have the same. ---

Re: [systemd-devel] [PATCH 2/2] Add more firewire properties for sound, to be closer to USB and PCI

2015-04-20 Thread Lennart Poettering
On Mon, 20.04.15 15:18, Adam Goode (ago...@google.com) wrote: On Mon, Apr 20, 2015 at 2:04 PM, Lennart Poettering lenn...@poettering.net wrote: On Fri, 10.04.15 22:27, Adam Goode (ago...@google.com) wrote: USB and PCI soundcards have a nice set of ID_* properties. It would be handy

Re: [systemd-devel] [PATCH 1/2] Don't use ALSA card id in ID_ID

2015-04-20 Thread Adam Goode
On Mon, Apr 20, 2015 at 2:40 PM, Lennart Poettering lenn...@poettering.net wrote: On Mon, 20.04.15 20:39, Lennart Poettering (lenn...@poettering.net) wrote: On Mon, 20.04.15 20:00, Lennart Poettering (lenn...@poettering.net) wrote: On Fri, 10.04.15 22:27, Adam Goode (ago...@google.com)

[systemd-devel] Setting up network interfaces for containers with --private-network

2015-04-20 Thread Spencer Baugh
Hi, Currently, I can manually set up (or set up with a script) a veth, then move it in to a systemd-nspawn container with --network-interface. However, if the container tries to restart (or exits and needs to be restarted), the network namespace of the container is destroyed and therefore so is

Re: [systemd-devel] [PATCH] util: fix typo

2015-04-20 Thread Daniel Mack
On 04/20/2015 07:27 AM, Raul Gutierrez S wrote: Signed-off-by: Raul Gutierrez S r...@itevenworks.net This isn't needed in the systemd project, so I dropped it. Applied, thanks! --- src/shared/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/util.c