Re: [systemd-devel] [PATCH] vlan: set sysfs device_type to 'vlan'

2012-10-23 Thread Ben Greear
On 10/23/2012 03:52 PM, Ben Hutchings wrote: On Tue, 2012-10-23 at 09:14 -0700, Ben Greear wrote: On 10/22/2012 11:36 PM, David Miller wrote: From: Doug Goldstein Date: Mon, 22 Oct 2012 00:53:57 -0500 Sets the sysfs device_type to 'vlan' for udev. This makes it easier for applications that q

Re: [systemd-devel] [PATCH] vlan: set sysfs device_type to 'vlan'

2012-10-23 Thread Ben Hutchings
On Tue, 2012-10-23 at 09:14 -0700, Ben Greear wrote: > On 10/22/2012 11:36 PM, David Miller wrote: > > From: Doug Goldstein > > Date: Mon, 22 Oct 2012 00:53:57 -0500 > > > >> Sets the sysfs device_type to 'vlan' for udev. This makes it easier for > >> applications that query network information vi

Re: [systemd-devel] journalctl | grep -v mail.*

2012-10-23 Thread Olav Vitters
On Tue, Oct 23, 2012 at 11:13:32PM +0200, Lennart Poettering wrote: > On Tue, 23.10.12 22:38, Olav Vitters (o...@vitters.nl) wrote: > > > I'm trying to learn journalctl a bit. > > > > I'd prefer if I could do a grep -v, but in journalctl using some > > argument, e.g. -v. > > Negative filtering (

Re: [systemd-devel] [ANNOUNCE] Journal File Format Documentation

2012-10-23 Thread Jóhann B. Guðmundsson
On 10/23/2012 09:19 PM, Lennart Poettering wrote: Related to the tool you are suggesting I think a tool to merge split off files might be very useful too, to counter the scalability issues of interleaving too many separate files on display. Yeah an extension to the journalctl and probably users w

Re: [systemd-devel] [ANNOUNCE] Journal File Format Documentation

2012-10-23 Thread Lennart Poettering
On Tue, 23.10.12 20:52, "Jóhann B. Guðmundsson" (johan...@gmail.com) wrote: > On 10/23/2012 06:40 PM, Lennart Poettering wrote: > >The journal currently cannot do this for you, but what it already can is > >split up the journal per-user. This is done by default only for login > >users, (i.e. actua

Re: [systemd-devel] journalctl | grep -v mail.*

2012-10-23 Thread Lennart Poettering
On Tue, 23.10.12 22:38, Olav Vitters (o...@vitters.nl) wrote: > I'm trying to learn journalctl a bit. > > I'd prefer if I could do a grep -v, but in journalctl using some > argument, e.g. -v. Negative filtering (i.e. not foo=bar, but foo!=bar) is currently not implemented. I have figured out how

Re: [systemd-devel] [ANNOUNCE] Journal File Format Documentation

2012-10-23 Thread Jóhann B. Guðmundsson
On 10/23/2012 06:40 PM, Lennart Poettering wrote: The journal currently cannot do this for you, but what it already can is split up the journal per-user. This is done by default only for login users, (i.e. actual human users), but with the SplitMode= setting in journald.conf can be enabled for sy

[systemd-devel] journalctl | grep -v mail.*

2012-10-23 Thread Olav Vitters
I'm trying to learn journalctl a bit. I'd prefer if I could do a grep -v, but in journalctl using some argument, e.g. -v. E.g. show me all the logs _except_ mail related things: $ journalctl -v -f SYSLOG_FACILITY=2 ideally (could this be implemented?): $ journalctl -v -f SYSLOG_FACILITY=mail I

Re: [systemd-devel] [PATCH] Fix starting swap unit on symlink made it unstoppable

2012-10-23 Thread jjacky
On 10/23/12 21:05, Lennart Poettering wrote: > On Sat, 13.10.12 14:24, Olivier Brunel (i.am.jack.m...@gmail.com) wrote: > >> Starting a swap unit pointing to (What) a symlink (e.g. /dev/mapper/swap >> or /dev/disk/by-uuid/...) would have said unit be marked active, follow >> the one using the "ac

Re: [systemd-devel] What is wrong with Bash? [Was: Re: [ANNOUNCE] Journal File Format Documentation]

2012-10-23 Thread Ciprian Dorin Craciun
(Ok. I've just opened another can of works... :) Thus I've changed the subject, not to pollute the journal thread with this issue.) :) On Tue, Oct 23, 2012 at 10:22 PM, Lennart Poettering wrote: > On Tue, 23.10.12 22:14, Ciprian Dorin Craciun (ciprian.crac...@gmail.com) > wrote: >> Ok.

Re: [systemd-devel] [ANNOUNCE] Journal File Format Documentation

2012-10-23 Thread Lennart Poettering
On Tue, 23.10.12 22:27, Ciprian Dorin Craciun (ciprian.crac...@gmail.com) wrote: > >> In one word: a way to partition entries into multiple log files, > >> by setting this special field. > > > > As mentioned we have SplitMode= for this, but it is strictly for UIDs > > only, since we only need

Re: [systemd-devel] [ANNOUNCE] Journal File Format Documentation

2012-10-23 Thread Ciprian Dorin Craciun
On Tue, Oct 23, 2012 at 10:18 PM, Lennart Poettering wrote: > On Tue, 23.10.12 22:02, Ciprian Dorin Craciun (ciprian.crac...@gmail.com) > wrote: >> And the way I see benefiting from systemd would be creating >> containers (like LXC) for each such "process". > > Our story regarding containers

Re: [systemd-devel] [ANNOUNCE] Journal File Format Documentation

2012-10-23 Thread Lennart Poettering
On Tue, 23.10.12 22:14, Ciprian Dorin Craciun (ciprian.crac...@gmail.com) wrote: > > Why? Why would anybody want to use the journal but not systemd? People > > who have issues with the latter usually are not rational about these > > things, and probably have a more philosophical/religious issue wi

Re: [systemd-devel] [ANNOUNCE] Journal File Format Documentation

2012-10-23 Thread Lennart Poettering
On Tue, 23.10.12 22:02, Ciprian Dorin Craciun (ciprian.crac...@gmail.com) wrote: > > On Tue, Oct 23, 2012 at 9:40 PM, Lennart Poettering > wrote: > > But note that the price you pay for interleaving files on display grows > > with the more you split things up (O(n) being n number of files to > >

Re: [systemd-devel] [ANNOUNCE] Journal File Format Documentation

2012-10-23 Thread Ciprian Dorin Craciun
On Tue, Oct 23, 2012 at 9:49 PM, Lennart Poettering wrote: > On Tue, 23.10.12 20:13, Ciprian Dorin Craciun (ciprian.crac...@gmail.com) > wrote: >> > The other thing is simply that the stuff is really integrated with each >> > other. The journal sources are small because we reuse a lot of internal

Re: [systemd-devel] [PATCH] Fix starting swap unit on symlink made it unstoppable

2012-10-23 Thread Lennart Poettering
On Sat, 13.10.12 14:24, Olivier Brunel (i.am.jack.m...@gmail.com) wrote: > Starting a swap unit pointing to (What) a symlink (e.g. /dev/mapper/swap > or /dev/disk/by-uuid/...) would have said unit be marked active, follow > the one using the "actual" device (/dev/{dm-1,sda3}), but that new unit >

Re: [systemd-devel] [ANNOUNCE] Journal File Format Documentation

2012-10-23 Thread Ciprian Dorin Craciun
On Tue, Oct 23, 2012 at 9:40 PM, Lennart Poettering wrote: > But note that the price you pay for interleaving files on display grows > with the more you split things up (O(n) being n number of files to > interleave), hence we are a bit conservative here, we don't want to push > people towards spli

Re: [systemd-devel] Race condition for service dependent on mount

2012-10-23 Thread Lennart Poettering
On Thu, 18.10.12 21:03, Mirco Tischler (mt...@gmx.de) wrote: > > 2012/10/18 David Strauss : > > If a service depends on a mount, systemd doesn't properly wait for the > > mount to complete before starting the service. This creates bad race > > conditions where the service may write to the mount d

Re: [systemd-devel] [PATCH RFC] swap: use aliases to group swap units for same device

2012-10-23 Thread Lennart Poettering
On Tue, 23.10.12 18:52, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > On Tue, Oct 23, 2012 at 05:48:57PM +0200, Kay Sievers wrote: > > On Tue, Oct 23, 2012 at 5:34 PM, Lennart Poettering > > wrote: > > > On Fri, 19.10.12 00:56, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) > > >

Re: [systemd-devel] [ANNOUNCE] Journal File Format Documentation

2012-10-23 Thread Lennart Poettering
On Tue, 23.10.12 23:43, Alexander E. Patrakov (patra...@gmail.com) wrote: > > 2012/10/21 Lennart Poettering : > > Heya, > > > > I have now found the time to document the journal file format: > > > > http://www.freedesktop.org/wiki/Software/systemd/journal-files > > > > Comments welcome! > > The

Re: [systemd-devel] [ANNOUNCE] Journal File Format Documentation

2012-10-23 Thread Lennart Poettering
On Tue, 23.10.12 20:13, Ciprian Dorin Craciun (ciprian.crac...@gmail.com) wrote: > > In the journal file format indexing field objects that are only > > referenced once is practically free, as instead of storing an offset to > > the bsearch object we use for indexing we just store the offset of th

Re: [systemd-devel] [ANNOUNCE] Journal File Format Documentation

2012-10-23 Thread Lennart Poettering
On Tue, 23.10.12 19:11, Ciprian Dorin Craciun (ciprian.crac...@gmail.com) wrote: > > On Sun, Oct 21, 2012 at 1:05 AM, Lennart Poettering > wrote: > > Heya, > > > > I have now found the time to document the journal file format: > > > > http://www.freedesktop.org/wiki/Software/systemd/journal-file

Re: [systemd-devel] [ANNOUNCE] Journal File Format Documentation

2012-10-23 Thread Alexander E. Patrakov
2012/10/21 Lennart Poettering : > Heya, > > I have now found the time to document the journal file format: > > http://www.freedesktop.org/wiki/Software/systemd/journal-files > > Comments welcome! The doc says these two things: 1) The format is designed to be read and written via memory mapping us

Re: [systemd-devel] [ANNOUNCE] Journal File Format Documentation

2012-10-23 Thread Ciprian Dorin Craciun
On Tue, Oct 23, 2012 at 7:33 PM, Lennart Poettering wrote: > On Tue, 23.10.12 18:48, Ciprian Dorin Craciun (ciprian.crac...@gmail.com) > wrote: > >> > - We needed something with in-line compression, and where we can add >> > stuff like FSS to >> >> Ok. I agree that there are very few librar

Re: [systemd-devel] [PATCH] vlan: set sysfs device_type to 'vlan'

2012-10-23 Thread David Miller
From: Kay Sievers Date: Tue, 23 Oct 2012 12:34:11 +0200 > On Tue, Oct 23, 2012 at 8:36 AM, David Miller wrote: >> From: Doug Goldstein >> Date: Mon, 22 Oct 2012 00:53:57 -0500 >> >>> Sets the sysfs device_type to 'vlan' for udev. This makes it easier for >>> applications that query network info

Re: [systemd-devel] [PATCH] vlan: set sysfs device_type to 'vlan'

2012-10-23 Thread Ben Greear
On 10/22/2012 11:36 PM, David Miller wrote: From: Doug Goldstein Date: Mon, 22 Oct 2012 00:53:57 -0500 Sets the sysfs device_type to 'vlan' for udev. This makes it easier for applications that query network information via udev to identify vlans instead of using strrchr(). Signed-off-by: Doug

Re: [systemd-devel] [PATCH RFC] swap: use aliases to group swap units for same device

2012-10-23 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Oct 23, 2012 at 05:48:57PM +0200, Kay Sievers wrote: > On Tue, Oct 23, 2012 at 5:34 PM, Lennart Poettering > wrote: > > On Fri, 19.10.12 00:56, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) > > wrote: > > > >> A series of .swap units "following" one another are replaced with a > >> sing

Re: [systemd-devel] journald reliability

2012-10-23 Thread Lennart Poettering
On Fri, 19.10.12 00:26, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > I think the only real way to solve this cleanly is to extend the kernel > > to provide SCM_CREDENTIAL and SCM_SECURITY-like auxiliary messages that > > carries the information we need. More specifically I am hoping

Re: [systemd-devel] [ANNOUNCE] Journal File Format Documentation

2012-10-23 Thread Lennart Poettering
On Tue, 23.10.12 18:48, Ciprian Dorin Craciun (ciprian.crac...@gmail.com) wrote: > > - We needed something with in-line compression, and where we can add > > stuff like FSS to > > Ok. I agree that there are very few libraries that fit here. All I > can think of making into here would be Ber

Re: [systemd-devel] [ANNOUNCE] Journal File Format Documentation

2012-10-23 Thread Ciprian Dorin Craciun
On Sun, Oct 21, 2012 at 1:05 AM, Lennart Poettering wrote: > Heya, > > I have now found the time to document the journal file format: > > http://www.freedesktop.org/wiki/Software/systemd/journal-files > > Comments welcome! (Replying directly to this as I want to start another "sub-thread"...

Re: [systemd-devel] [PATCH RFC] swap: use aliases to group swap units for same device

2012-10-23 Thread Kay Sievers
On Tue, Oct 23, 2012 at 5:34 PM, Lennart Poettering wrote: > On Fri, 19.10.12 00:56, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > >> A series of .swap units "following" one another are replaced with a >> single unit with multiple names. >> >> The idea is to simplify things for the user

Re: [systemd-devel] [ANNOUNCE] Journal File Format Documentation

2012-10-23 Thread Ciprian Dorin Craciun
On Tue, Oct 23, 2012 at 5:39 PM, Lennart Poettering wrote: > On Tue, 23.10.12 15:25, Ciprian Dorin Craciun (ciprian.crac...@gmail.com) > wrote: >> Why did you resort to implementing a new database format, and >> didn't choose an existing embedded library like BerkeleyDB, LevelDB, >> etc.? (Ad

Re: [systemd-devel] Starting/stopping service on net connection

2012-10-23 Thread Lennart Poettering
On Fri, 19.10.12 00:01, Dan Tihelka (dtihe...@gmail.com) wrote: > > Hello, > thank you for such a long and detailed answer. I do agree with you in general. > > Of course, there is an intersection of two words. On one side there is an > init > daemon being responsible for starting/stopping serv

Re: [systemd-devel] [PATCH RFC] swap: use aliases to group swap units for same device

2012-10-23 Thread Lennart Poettering
On Fri, 19.10.12 00:56, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > A series of .swap units "following" one another are replaced with a > single unit with multiple names. > > The idea is to simplify things for the user: only one swap unit per > swap area. It shouldn't matter whether

Re: [systemd-devel] [PATCH] cgls: correctly ellipsize command lines for PIDs >= 1000000

2012-10-23 Thread Lennart Poettering
On Fri, 19.10.12 20:15, Mantas Mikulėnas (graw...@gmail.com) wrote: Thanks! Applied. Lennart -- Lennart Poettering - Red Hat, Inc. ___ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/system

Re: [systemd-devel] Too little information is shown when system enters emergency mode

2012-10-23 Thread Lennart Poettering
On Mon, 22.10.12 11:41, Zbigniew Jędrzejewski-Szmek (zbys...@in.waw.pl) wrote: > > Please note the version of systemd (v44) in openSUSE doesn't have all > > the needed bits to always display on the screen why dependency failed > > (and you end up in emergency mode). This is fixed with systemd 195

Re: [systemd-devel] [PATCH] rules: Remove HP iLO from USB HID PM rules

2012-10-23 Thread Kay Sievers
On Mon, Oct 22, 2012 at 3:40 PM, Tony Camuso wrote: > HP iLO fw versions below 1.50 incorrectly report that HP iLO virtual > Kbd/Mouse supports remote wakeup. With the rules change in commit > 3bfc7a97b1824fcdfb738617d9a5450a20a22a0f, the HP iLO was listed for > power control. > > In iLO fw versio

Re: [systemd-devel] Too little information is shown when system enters emergency mode

2012-10-23 Thread Lennart Poettering
On Sun, 21.10.12 15:59, Andrey Borzenkov (arvidj...@gmail.com) wrote: > Welcome to emergency mode. Use "systemctl default" or ^D to enter default > mode. > Give root password for login: systemd 195 will now also mention "journalctl -b" in this message. Originally this was only in the rescue mode

Re: [systemd-devel] pm-utils quirks

2012-10-23 Thread Lennart Poettering
On Mon, 22.10.12 23:47, Colin Guthrie (gm...@colin.guthr.ie) wrote: > So, should the org.freedesktop.UPower.CanSuspend/Hibernate properties be > cooked up instead to logind rather than shelling out to > pm-is-supported? Yes, I guess. And the clients should probably move over to logind anyway. >

Re: [systemd-devel] [ANNOUNCE] Journal File Format Documentation

2012-10-23 Thread Lennart Poettering
On Tue, 23.10.12 15:25, Ciprian Dorin Craciun (ciprian.crac...@gmail.com) wrote: > But what I couldn't find in any of these documents (maybe there is > in another one), is a justification of the current technical (i.e. > implementation) decisions. Mainly: That's a valid question to raise. >

Re: [systemd-devel] [ANNOUNCE] systemd 195

2012-10-23 Thread Zbigniew Jędrzejewski-Szmek
On Tue, Oct 23, 2012 at 10:42:34AM +0200, Koen Kooi wrote: > > Op 23 okt. 2012, om 02:56 heeft Lennart Poettering > het volgende geschreven: > > > Heya! > > > > A non-trivial amount of cool new features, but primarily bug fixes bug > > fixes bug fixes. > > > In both 194 and 195 I have troubl

Re: [systemd-devel] [ANNOUNCE] Journal File Format Documentation

2012-10-23 Thread Ciprian Dorin Craciun
On Sun, Oct 21, 2012 at 1:05 AM, Lennart Poettering wrote: > Heya, > > I have now found the time to document the journal file format: > > http://www.freedesktop.org/wiki/Software/systemd/journal-files > > Comments welcome! > > (Oh, and it's in the fdo wiki, so if you see a typo or so, go ahead and

Re: [systemd-devel] [PATCH] vlan: set sysfs device_type to 'vlan'

2012-10-23 Thread Kay Sievers
On Tue, Oct 23, 2012 at 8:36 AM, David Miller wrote: > From: Doug Goldstein > Date: Mon, 22 Oct 2012 00:53:57 -0500 > >> Sets the sysfs device_type to 'vlan' for udev. This makes it easier for >> applications that query network information via udev to identify vlans >> instead of using strrchr().

Re: [systemd-devel] [PATCH] vlan: set sysfs device_type to 'vlan'

2012-10-23 Thread David Miller
From: Doug Goldstein Date: Mon, 22 Oct 2012 00:53:57 -0500 > Sets the sysfs device_type to 'vlan' for udev. This makes it easier for > applications that query network information via udev to identify vlans > instead of using strrchr(). > > Signed-off-by: Doug Goldstein You're extremely misguid

Re: [systemd-devel] [ANNOUNCE] systemd 195

2012-10-23 Thread Koen Kooi
Op 23 okt. 2012, om 02:56 heeft Lennart Poettering het volgende geschreven: > Heya! > > A non-trivial amount of cool new features, but primarily bug fixes bug > fixes bug fixes. In both 194 and 195 I have trouble building system for my embedded systems: | src/journal/journal-gatewayd.c: In