[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

[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

[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, cgro

[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'

[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 f2

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

2010-10-06 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, cgro

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

2010-10-06 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'

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

2010-10-06 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

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

2010-10-06 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 f2

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

2010-10-05 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. TODO: - umount dms - umount loopbacks Mountpoints are being read from /proc/self/mountinfo.

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

2010-10-05 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 mount all mount points - Try to remount read-only all mount points that can&#

[systemd-devel] [PATCH 2/4] Fixing typo: seperator -> separator

2010-10-05 Thread fidencio
From: Fabiano Fidencio --- src/mount.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mount.c b/src/mount.c index 2fb5822..52743db 100644 --- a/src/mount.c +++ b/src/mount.c @@ -1420,7 +1420,7 @@ static int mount_load_proc_self_mountinfo(Manager *m, bool

[systemd-devel] [PATCH 1/4] Don't stop the mountinfo's parser if one line can't be read

2010-10-05 Thread fidencio
From: Fabiano FidĂȘncio The current behavior of the /proc/self/mountinfo's parser is stop the parser if the parser fail. I'm only changing this behavior to try the next line and adding a warning if occurs a fail. --- src/mount.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-)

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

2010-09-30 Thread fidencio
From: Fabiano Fidencio This functions will unmount all filesystem that aren't api (and those which fail will be remounted read-only). Filesystems are being read from /proc/self/mountinfo. --- Makefile.am |1 + src/umount.c |

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

2010-09-30 Thread fidencio
From: Fabiano Fidencio This functions will unmount all filesystem that aren't api (and those which fail will be remounted read-only). Filesystems are being read from /proc/self/mountinfo. --- Makefile.am |1 + src/umount.c |

[systemd-devel] [PATCH 1/4] Don't stop the mountinfo's parser if one line can't be read

2010-09-30 Thread fidencio
From: Fabiano FidĂȘncio The current behavior of the /proc/self/mountinfo's parser is stop the parser if the parser fail. I'm only changing this behavior to try the next line and adding a warning if occurs a fail. --- src/mount.c |9 + 1 files changed, 5 insertions(+), 4 deletions(-)

[systemd-devel] [PATCH 4/4] Fixing typo: seperator -> separator

2010-09-30 Thread fidencio
From: Fabiano Fidencio --- src/mount.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/mount.c b/src/mount.c index 2fb5822..52743db 100644 --- a/src/mount.c +++ b/src/mount.c @@ -1420,7 +1420,7 @@ static int mount_load_proc_self_mountinfo(Manager *m, bool

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

2010-09-30 Thread fidencio
From: Fabiano Fidencio This functions are working as follows: - Send a SIGTERM to all process - Send a SIGKILL to all process - Try to umount all mount points - Try to remount read-only all mount points that can't be umounted - Call shutdown If one step

[systemd-devel] [PATCH 2/2] Fixing typo in LIST_FIND_HEAD

2010-09-27 Thread Fabiano Fidencio
Just removing a parenthesis --- src/list.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/list.h b/src/list.h index 9380f36..e49d953 100644 --- a/src/list.h +++ b/src/list.h @@ -77,7 +77,7 @@ do {\

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

2010-09-27 Thread Fabiano Fidencio
This functions will unmount all filesystem that aren't api (and those which fail will be remounted read-only). Filesystems are being read from /proc/self/mountinfo. --- Makefile.am |1 + src/umount.c | 184 ++ src/umount.h | 27 ++

[systemd-devel] [PATCH 2/2] Fixing typo in LIST_FIND_HEAD

2010-09-27 Thread fidencio
From: Fabiano Fidencio Just removing a parenthesis --- src/list.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/list.h b/src/list.h index 9380f36..e49d953 100644 --- a/src/list.h +++ b/src/list.h @@ -77,7 +77,7 @@ do

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

2010-09-27 Thread fidencio
From: Fabiano Fidencio This functions will unmount all filesystem that aren't api (and those which fail will be remounted read-only). Filesystems are being read from /proc/self/mountinfo. --- Makefile.am |1 + src/umount.c |

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

2010-09-26 Thread Fabiano Fidencio
This functions will unmount all filesystem that aren't api (and those which fail will be remounted read-only). Filesystems are being read from /proc/self/mountinfo. --- Makefile.am |1 + src/umount.c | 192 ++ src/umount.h | 27 ++

[systemd-devel] [PATCH 1/2] Removing double include of "mount.h"

2010-09-26 Thread Fabiano Fidencio
--- src/mount.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/mount.c b/src/mount.c index 5a05e2c..64c6790 100644 --- a/src/mount.c +++ b/src/mount.c @@ -33,7 +33,6 @@ #include "strv.h" #include "mount-setup.h" #include "unit-name.h" -#include "mount.h" #include

[systemd-devel] [systemd 2/2] Adding unmount function to be used in shutdown

2010-09-21 Thread Fabiano Fidencio
This function will unmount all filesystem (and those which fail will be remounted read-only). Filesystems are being read from /proc/self/mountinfo. --- src/shutdownd.c | 73 +++ 1 files changed, 73 insertions(+), 0 deletions(-) diff --git a/sr

[systemd-devel] [systemd 1/2] Removing double include of "mount.h"

2010-09-21 Thread Fabiano Fidencio
--- src/mount.c |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/src/mount.c b/src/mount.c index 5a05e2c..64c6790 100644 --- a/src/mount.c +++ b/src/mount.c @@ -33,7 +33,6 @@ #include "strv.h" #include "mount-setup.h" #include "unit-name.h" -#include "mount.h" #include

[systemd-devel] [PATCH 2/2] Support IPv6-less systems with runtime check.

2010-09-20 Thread Fabiano Fidencio
This patch introduces socket_ipv6_is_supported() call that checks for IPv6 availability. Code then check for it before using specific calls. In order to be less intrusive, this patch avoids IPv6 entries being parsed at all, this way we don't get such entries in the system and all other code paths

[systemd-devel] [PATCH 1/2] Allow disable of SysV init/rcN.d support at compile time

2010-09-20 Thread Fabiano Fidencio
This patch adds a cpp definition HAVE_SYSV_COMPAT that is used to isolate code dealing with /etc/init.d and /etc/rcN.d for systems where it does not make sense (one that does not use sysv or one that is fully systemd native). The patch tries to be as little intrusive as possible, however in order

[systemd-devel] [PATCH 2/2] Support IPv6-less systems with runtime check.

2010-09-16 Thread Fabiano Fidencio
This patch introduces socket_ipv6_is_supported() call that checks for IPv6 availability. Code then check for it before using specific calls. In order to be less intrusive, this patch avoids IPv6 entries being parsed at all, this way we don't get such entries in the system and all other code paths

[systemd-devel] [PATCH 1/2] Allow disable of SysV init/rcN.d support at compile time

2010-09-16 Thread Fabiano Fidencio
This patch adds a cpp definition HAVE_SYSV_COMPAT that is used to isolate code dealing with /etc/init.d and /etc/rcN.d for systems where it does not make sense (one that does not use sysv or one that is fully systemd native). The patch tries to be as little intrusive as possible, however in order