Re: [systemd-devel] [PATCH] cgroup: only check once when mode is UNIT_CHECK

2013-08-28 Thread Zbigniew Jędrzejewski-Szmek
On Mon, Aug 26, 2013 at 10:36:45AM +0800, Gao feng wrote:
 If the mode is UNIT_CHECK,it means we only want to check if
 the paramaters are valid. the first round of cycle already
 did this check, no need to check again.
Applied.

Zbyszek
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [PATCH] cgroup: only check once when mode is UNIT_CHECK

2013-08-25 Thread Gao feng
If the mode is UNIT_CHECK,it means we only want to check if
the paramaters are valid. the first round of cycle already
did this check, no need to check again.
---
 src/core/dbus-unit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/core/dbus-unit.c b/src/core/dbus-unit.c
index 4cd3a13..2ea59b2 100644
--- a/src/core/dbus-unit.c
+++ b/src/core/dbus-unit.c
@@ -981,7 +981,7 @@ int bus_unit_set_properties(
 
 if (dbus_message_iter_get_arg_type(sub) == DBUS_TYPE_INVALID) 
{
 
-if (for_real)
+if (for_real || mode == UNIT_CHECK)
 break;
 
 /* Reached EOF. Let's try again, and this time for 
realz... */
-- 
1.8.3.1

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/systemd-devel