Re: [systemd-devel] [PATCH] vconsole-setup: fix path on Arch

2010-10-07 Thread Gustavo Sverzut Barbieri
On Thu, Oct 7, 2010 at 2:27 PM, Lucas De Marchi wrote: > On Thu, Oct 7, 2010 at 2:19 PM, Lennart Poettering > wrote: >> On Thu, 07.10.10 14:00, Lucas De Marchi ([email protected]) >> wrote: >> >>> Arch uses the same paths and default font of gentoo. Previously, >>> systemd-vconsole-s

Re: [systemd-devel] [PATCH] vconsole-setup: fix path on Arch

2010-10-07 Thread Lucas De Marchi
On Thu, Oct 7, 2010 at 2:19 PM, Lennart Poettering wrote: > On Thu, 07.10.10 14:00, Lucas De Marchi ([email protected]) wrote: > >> Arch uses the same paths and default font of gentoo. Previously, >> systemd-vconsole-setup was failing with the following message: >> >> systemd-vconsole-

Re: [systemd-devel] [PATCH 4/4] README: Check for libudev-160, as in configure.ac

2010-10-07 Thread Lennart Poettering
On Thu, 07.10.10 04:24, [email protected] ([email protected]) wrote: > From: Fabiano Fidencio Merged all four patches! Thanks a lot of your work. This is quite a valuable contribution! Thanks, Lennart -- Lennart Poettering - Red Hat, Inc. _

Re: [systemd-devel] [PATCH 1/2] Adding unmount functions to be used in shutdown

2010-10-07 Thread Karel Zak
On Thu, Oct 07, 2010 at 07:08:03PM +0200, Lennart Poettering wrote: > Or in other words: Gustavo's and Fidencio's code is just about enough to > avoid unclean file systems. If everything went correctly during normal > operation the usual ordered .mount units will aready have called > /bin/umount fo

Re: [systemd-devel] [PATCH] vconsole-setup: fix path on Arch

2010-10-07 Thread Lennart Poettering
On Thu, 07.10.10 14:00, Lucas De Marchi ([email protected]) wrote: > Arch uses the same paths and default font of gentoo. Previously, > systemd-vconsole-setup was failing with the following message: > > systemd-vconsole-setup[59]: /bin/setfont failed with error code 1. I have now mer

Re: [systemd-devel] [PATCH 1/2] Adding unmount functions to be used in shutdown

2010-10-07 Thread Lennart Poettering
On Wed, 06.10.10 15:43, Karel Zak ([email protected]) wrote: > > On Wed, Oct 06, 2010 at 03:01:02PM +0200, Lennart Poettering wrote: > > > > +if (streq(mp->path, "/")) > > > > +continue; > > > > + > > > > +/* Trying to umount. Forcing to umoun

[systemd-devel] [PATCH] vconsole-setup: fix path on Arch

2010-10-07 Thread Lucas De Marchi
Arch uses the same paths and default font of gentoo. Previously, systemd-vconsole-setup was failing with the following message: systemd-vconsole-setup[59]: /bin/setfont failed with error code 1. --- Makefile.am |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/Makefil

[systemd-devel] [ANNOUNCE] systemd 11

2010-10-07 Thread Lennart Poettering
Heya, http://www.freedesktop.org/software/systemd/systemd-11.tar.bz2 Andreas Jaeger (1): tmpfiles: fix typo in comment Dave Reisner (1): fix typo: s/seperat/separat/g Fabiano Fidencio (4): socket: Support IPv6-less systems with runtime check. mount: Remove double include

[systemd-devel] [PATCH 2/4] Adding unmount functions to be used in shutdown

2010-10-07 Thread fidencio
From: Fabiano Fidencio This functions will: - umount all mount points that aren't API - remount read-only all mount points that can't be umounted - umount all swap devices. - detach all loopback devices TODO: - umount dms Mountpoints are being read from /proc/self/mountinfo. Swap

Re: [systemd-devel] [PATCH 2/4] Adding unmount functions to be used in shutdown

2010-10-07 Thread Fabiano Fidêncio
On Thu, Oct 7, 2010 at 8:33 AM, Kay Sievers wrote: > On Thu, Oct 7, 2010 at 13:24,   wrote: >> +static int loopback_list_get(MountPoint **loopback_list_head) { >> +        int r; >> +        struct udev *udev; >> +        struct udev_enumerate *e = NULL; >> +        struct udev_list_entry *item =

Re: [systemd-devel] [PATCH 2/4] Adding unmount functions to be used in shutdown

2010-10-07 Thread Kay Sievers
On Thu, Oct 7, 2010 at 13:24, wrote: > +static int loopback_list_get(MountPoint **loopback_list_head) { > +        int r; > +        struct udev *udev; > +        struct udev_enumerate *e = NULL; > +        struct udev_list_entry *item = NULL, *first = NULL; > + > +        if (!(udev = udev_new()

[systemd-devel] [PATCH 2/4] Adding unmount functions to be used in shutdown

2010-10-07 Thread fidencio
From: Fabiano Fidencio This functions will: - umount all mount points that aren't API - remount read-only all mount points that can't be umounted - umount all swap devices. - detach all loopback devices TODO: - umount dms Mountpoints are being read from /proc/self/mountinfo. Swap

[systemd-devel] [PATCH 4/4] README: Check for libudev-160, as in configure.ac

2010-10-07 Thread fidencio
From: Fabiano Fidencio --- README |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/README b/README index 430d091..12dc9fe 100644 --- a/README +++ b/README @@ -28,7 +28,7 @@ AUTHOR: REQUIREMENTS: Linux kernel >= 2.6.30 (with autofs4, devtmpfs, cgroups) -

[systemd-devel] [PATCH 3/4] Adding binary to shutdown the system

2010-10-07 Thread fidencio
From: Fabiano Fidencio This functions are working as follows: - Send a SIGTERM to all processes that may be finished - Send a SIGKILL to all processes that still live and may be finished - Try to unmount all mount points - Try to remount read-only all mount points that can't be umount

[systemd-devel] [PATCH 1/4] Adding a strneq, to represent (!strncmp(a, b, n))

2010-10-07 Thread fidencio
From: Fabiano Fidencio As we have streq to repesent (strcmp(a, b) == 0),I'm adding strneq to represent (strncmp(a, b, n) == 0), that will be used in umount.c (at least). --- src/util.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/util.h b/src/util.h index f21aecf.

Re: [systemd-devel] [PATCH 2/4] Adding unmount functions to be used in shutdown

2010-10-07 Thread Gustavo Sverzut Barbieri
On Thu, Oct 7, 2010 at 4:24 AM, Kay Sievers wrote: > On Thu, Oct 7, 2010 at 06:03,   wrote: >> +        if (udev_enumerate_add_match_subsystem(e, "block") < 0) { >> +                r = -EIO; >> +                goto finish; >> +        } >> + >> +        if (udev_enumerate_scan_devices(e) < 0) {

Re: [systemd-devel] [PATCH 2/2] Adding binary to shutdown the system

2010-10-07 Thread Harald Hoyer
On 10/06/2010 04:15 PM, Gustavo Sverzut Barbieri wrote: From: Fabiano Fidencio This functions are working as follows: - Send a SIGTERM to all processes that may be finished - Send a SIGKILL to all processes that still live and may be finished - Try to unmount all mount points

Re: [systemd-devel] [PATCH 2/4] Adding unmount functions to be used in shutdown

2010-10-07 Thread Kay Sievers
On Thu, Oct 7, 2010 at 06:03, wrote: > +        if (udev_enumerate_add_match_subsystem(e, "block") < 0) { > +                r = -EIO; > +                goto finish; > +        } > + > +        if (udev_enumerate_scan_devices(e) < 0) { > +                r = -EIO; > +                goto finish;