[Devel] Re: [PATCH 1/2] Extend sys_clone and sys_unshare system calls API

2008-01-17 Thread Cedric Le Goater
Al Viro wrote: On Wed, Jan 16, 2008 at 07:23:40AM -0700, Jonathan Corbet wrote: Hi, Pavel, [Adding Ulrich] I use the last bit in the clone_flags for CLONE_LONGARG. When set it will denote that the child_tidptr is not a pointer to a tid storage, but the pointer to the struct

[Devel] [PATCH 3/3 net-2.6.25] Process FIB rule action in the context of the namespace.

2008-01-17 Thread Denis V. Lunev
Save namespace context on the fib rule at the rule creation time and call routing lookup in the correct namespace. Signed-off-by: Denis V. Lunev [EMAIL PROTECTED] Acked-by: Daniel Lezcano [EMAIL PROTECTED] --- include/net/fib_rules.h |1 + net/core/fib_rules.c|2 ++

[Devel] Broken Make ip6_frags per namespace patch

2008-01-17 Thread Alexey Dobriyan
commit c064c4811b3e87ff8202f5a966ff4eea0bc54575 Author: Daniel Lezcano [EMAIL PROTECTED] Date: Thu Jan 10 02:56:03 2008 -0800 [NETNS][IPV6]: Make ip6_frags per namespace. The ip6_frags is moved to the network namespace structure. Because there can be multiple instances

[Devel] [PATCH 0/3 net-2.6.25] call FIB rule-action in the correct namespace

2008-01-17 Thread Denis V. Lunev
FIB rule-action should operate in the same namespace as fib_lookup. This is definitely missed right now. There are two ways to implement this: pass struct net into another rules API call (2 levels) or place netns into rule struct directly. The second approach seems better as the code will grow

[Devel] [PATCH 1/3 net-2.6.25] Add netns to fib_rules_ops.

2008-01-17 Thread Denis V. Lunev
The backward link from FIB rules operations to the network namespace will allow to simplify the API a bit. Signed-off-by: Denis V. Lunev [EMAIL PROTECTED] Acked-by: Daniel Lezcano [EMAIL PROTECTED] --- include/net/fib_rules.h |1 + net/decnet/dn_rules.c |1 + net/ipv4/fib_rules.c|

[Devel] [PATCH 2/3 net-2.6.25] [NETNS] FIB rules API cleanup.

2008-01-17 Thread Denis V. Lunev
Remove struct net from fib_rules_register(unregister)/notify_change paths and diet code size a bit. add/remove: 0/0 grow/shrink: 10/12 up/down: 35/-100 (-65) function old new delta notify_rule_change 273 280 +7

[Devel] Re: Broken Make ip6_frags per namespace patch

2008-01-17 Thread Daniel Lezcano
Alexey Dobriyan wrote: commit c064c4811b3e87ff8202f5a966ff4eea0bc54575 Author: Daniel Lezcano [EMAIL PROTECTED] Date: Thu Jan 10 02:56:03 2008 -0800 [NETNS][IPV6]: Make ip6_frags per namespace. The ip6_frags is moved to the network namespace structure. Because there can be

[Devel] Re: [PATCH 0/3 net-2.6.25] call FIB rule-action in the correct namespace

2008-01-17 Thread Daniel Lezcano
Denis V. Lunev wrote: FIB rule-action should operate in the same namespace as fib_lookup. This is definitely missed right now. There are two ways to implement this: pass struct net into another rules API call (2 levels) or place netns into rule struct directly. The second approach seems better

[Devel] Re: Broken Make ip6_frags per namespace patch

2008-01-17 Thread Alexey Dobriyan
On Thu, Jan 17, 2008 at 11:40:42AM +0100, Daniel Lezcano wrote: Alexey Dobriyan wrote: commit c064c4811b3e87ff8202f5a966ff4eea0bc54575 Author: Daniel Lezcano [EMAIL PROTECTED] Date: Thu Jan 10 02:56:03 2008 -0800 [NETNS][IPV6]: Make ip6_frags per namespace. The ip6_frags is

[Devel] Re: Broken Make ip6_frags per namespace patch

2008-01-17 Thread Daniel Lezcano
Alexey Dobriyan wrote: On Thu, Jan 17, 2008 at 11:40:42AM +0100, Daniel Lezcano wrote: Alexey Dobriyan wrote: commit c064c4811b3e87ff8202f5a966ff4eea0bc54575 Author: Daniel Lezcano [EMAIL PROTECTED] Date: Thu Jan 10 02:56:03 2008 -0800 [NETNS][IPV6]: Make ip6_frags per namespace.

Re: [Devel] [vzctl] exec early script at start

2008-01-17 Thread Yoann Moulin
Have you tried using /etc/vz/conf/$VEID.start script? There are also .stop, .mount and .umount. I'm sorry if it is not documented; will fix that. Note that mount/umount scripts are both per-VE and global (global one is called vps.mount/vps.umount), while start/stop are only per-VE. This can

Re: [Devel] [vzctl] exec early script at start

2008-01-17 Thread Yoann Moulin
I'm not very familiar with this syntaxes but I think it can be done similarly : snprintf(buf, sizeof(buf), VPS_CONF_DIR %d.%s, veid, START_PREFIX); if (stat_file(buf)) { if (vps_exec_script(h, veid, res-fs.root, NULL, NULL, buf, NULL, 0)) {

[Devel] Re: Extending syscalls

2008-01-17 Thread H. Peter Anvin
Jonathan Corbet wrote: Heh, indeed. But we do seem to have a recurring problem of people wanting to extend sys_foo() beyond the confines of its original API. I've observed a few ways of doing that: - create sys_foo2() (or sys_foo64(), or sys_fooat(), or sys_pfoo(), or...) and add the new