Re: [systemd-devel] Trying to turn off a UPS with home-made service unit

2013-09-15 Thread Roger Price
On Wed Sep 11 10:45:48 PDT 2013 Lennart Poettering wrote: So, it's a really bad idea to turn off UPS from userspace, simply because you will race against the kernel's fs sync() code, and you never know what will finish first: your UPS shutdown timeout or your fs sync(). Doing this from

Re: [systemd-devel] systemd shutdown vs ostree

2013-09-15 Thread Koen Kooi
Op 14 sep. 2013, om 11:04 heeft Jan Alexander Steffens het volgende geschreven: On Sat, Sep 14, 2013 at 10:52 AM, Koen Kooi wrote: Please keep in mind that pstore is x86 only. EFI isn't x86 only, but exceedingly rare outside of that arch.

Re: [systemd-devel] [RFC] mount/automount/swap: unify the remaining default dependency handling

2013-09-15 Thread Tom Gundersen
Please disregard these patches for now, I'll have to rethink and resubmit them. Cheers, Tom On Fri, Sep 13, 2013 at 12:55 PM, Tom Gundersen wrote: This moves the last bits of the default dependency handling from the fstab generator to core, and uses it also in the gpt-auto

Re: [systemd-devel] [PATCH 1/5] cgroup: add the setting memory.use_hierarchy support for systemd

2013-09-15 Thread Gao feng
On 09/13/2013 08:26 PM, Lennart Poettering wrote: On Fri, 13.09.13 17:49, Gao feng ( wrote: Some programs need to set the memory.use_hierarchy(such as libvirt), Add this feature. Hmm, should this really be an option? Shouldn't we much rather turn this on

[systemd-devel] [PATCH] cgroup: add missing equals for BlockIOWeight

2013-09-15 Thread Gao feng
--- src/core/cgroup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/cgroup.c b/src/core/cgroup.c index 1f41efc..9277dd6 100644 --- a/src/core/cgroup.c +++ b/src/core/cgroup.c @@ -92,7 +92,7 @@ void cgroup_context_dump(CGroupContext *c, FILE* f, const char *prefix)

[systemd-devel] Question: who should set up the cpuset cgroup

2013-09-15 Thread Gao feng
Hi I'm working on adding set cpuset cgroup support for systemd. this work almost finished. but I faced a problem. As we know, if we create a machine,the cgroup for this machine will be created as well. and the cgroup of this machine is a sub-directory of machine.slice(or other slices..). And if