[Devel] Re: [PATCH 6/6] NFS: idmap PipeFS notifier introduced

2012-01-10 Thread Stanislav Kinsbursky
31.12.2011 02:54, Trond Myklebust пишет: On Mon, 2011-11-28 at 17:34 +0300, Stanislav Kinsbursky wrote: This patch subscribes NFS clients to RPC pipefs notifications. Idmap notifier is registering on NFS module load. This notifier callback is responsible for creation/destruction of PipeFS idmap

[Devel] Re: [PATCH 01/11] SYSCTL: export root and set handling routines

2012-01-10 Thread Stanislav Kinsbursky
03.01.2012 07:49, Eric W. Biederman пишет: Stanislav Kinsbursky writes: 19.12.2011 20:37, Eric W. Biederman пишет: Stanislav Kinsbursky writes: Doing that independently of the rest of the sysctls is pretty horrible and confusing to users. What I am planning might suit your needs and if n

[Devel] Re: [PATCH 0/5] NFS: create blocklayout pipe per network namesapce context

2012-01-10 Thread Stanislav Kinsbursky
31.12.2011 02:55, Trond Myklebust пишет: On Tue, 2011-11-29 at 13:10 +0300, Stanislav Kinsbursky wrote: This patch set was created in context of clone of git branch: git://git.linux-nfs.org/projects/trondmy/nfs-2.6.git. tag: v3.1 This patch set depends on previous patch sets titled: 1) "SUNRPC:

[Devel] [PATCH v2 0/6] NFS: create clients and IDMAP pipes per network namespace

2012-01-10 Thread Stanislav Kinsbursky
This patch set was created in context of clone of git branch: git://git.linux-nfs.org/projects/trondmy/nfs-2.6.git. v2: 1) Rebased on tag v3.2 2) Added "nfs_idmap_init" and "nfs_idmap_quit" definitions for kernels built without CONFIG_NFS_V4 option set This patch set depends on previous patch set

[Devel] [PATCH v2 1/6] SUNRPC: fix pipe->ops cleanup on pipe dentry unlink

2012-01-10 Thread Stanislav Kinsbursky
This patch looks late due to GSS AUTH patches sent already. But it fixes a flaw in RPC PipeFS pipes handling. I've added this patch in the series, because this series related to pipes. But it should be a part of previous series named "SUNPRC: cleanup PipeFS for network-namespace-aware users". Pipe

[Devel] [PATCH v2 3/6] NFS: pass NFS client owner network namespace to RPC client creation routine

2012-01-10 Thread Stanislav Kinsbursky
This patch replaces static "init_net" with nfs_client->net pointer in RPC client creation calls. Signed-off-by: Stanislav Kinsbursky --- fs/nfs/client.c |2 +- fs/nfs/internal.h |1 + fs/nfs/mount_clnt.c |4 ++-- fs/nfs/super.c |1 + 4 files changed, 5 insertions(+),

[Devel] [PATCH v2 2/6] NFS: make NFS client allocated per network namespace context

2012-01-10 Thread Stanislav Kinsbursky
This patch adds new net variable to nfs_client structure. This variable is set on NFS client creation and cheched during matching NFS client search. Initially current->nsproxy->net_ns is used as network namespace owner for new NFS client to create. This network namespace pointer is set during mount

[Devel] [PATCH v2 4/6] NFS: create callback transports in parent transport network namespace

2012-01-10 Thread Stanislav Kinsbursky
This patch replaces static "init_net" references with parent transport xprt_net reference. Thus callback transports will be created in the same network namespace as respective NFS mount point was created. Signed-off-by: Stanislav Kinsbursky --- fs/nfs/callback.c | 10 +- 1 files chang

[Devel] [PATCH v2 5/6] NFS: handle NFS idmap pipe PipeFS dentries by network namespace aware routines

2012-01-10 Thread Stanislav Kinsbursky
This patch makes NFS idmap pipes dentries allocated and destroyed in network namespace context by PipeFS network namespace aware routines. Network namespace context is obtained from nfs_client structure. Signed-off-by: Stanislav Kinsbursky --- fs/nfs/idmap.c | 61 +

[Devel] [PATCH v2 6/6] NFS: idmap PipeFS notifier introduced

2012-01-10 Thread Stanislav Kinsbursky
v2: 1) Added "nfs_idmap_init" and "nfs_idmap_quit" definitions for kernels built without CONFIG_NFS_V4 option set. This patch subscribes NFS clients to RPC pipefs notifications. Idmap notifier is registering on NFS module load. This notifier callback is responsible for creation/destruction of Pipe

[Devel] Re: [PATCH 0/5] NFS: create blocklayout pipe per network namesapce context

2012-01-10 Thread Stanislav Kinsbursky
06.01.2012 00:58, Trond Myklebust пишет: On Fri, 2011-12-30 at 17:55 -0500, Trond Myklebust wrote: On Tue, 2011-11-29 at 13:10 +0300, Stanislav Kinsbursky wrote: This patch set was created in context of clone of git branch: git://git.linux-nfs.org/projects/trondmy/nfs-2.6.git. tag: v3.1 This p

[Devel] [PATCH v2 1/5] NFS: handle blocklayout pipe PipeFS dentry by network namespace aware routines

2012-01-10 Thread Stanislav Kinsbursky
This patch makes blocklayout pipe dentry allocated and destroyed in network namespace context by PipeFS network namespace aware routines. Network namespace context is obtained from nfs_client structure. Signed-off-by: Stanislav Kinsbursky --- fs/nfs/blocklayout/blocklayout.c | 61

[Devel] [PATCH v2 2/5] NFS: blocklayout pipe creation per network namespace context introduced

2012-01-10 Thread Stanislav Kinsbursky
This patch implements blocklayout pipe creation and registration per each existent network namespace. This was achived by registering NFS per-net operations, responsible for blocklayout pipe allocation/register and unregister/destruction instead of initialization and destruction of static "bl_devic

[Devel] [PATCH v2 3/5] NFS: blocklayout PipeFS notifier introduced

2012-01-10 Thread Stanislav Kinsbursky
This patch subscribes blocklayout pipes to RPC pipefs notifications. Notifier is registering on blocklayout module load. This notifier callback is responsible for creation/destruction of PipeFS blocklayout pipe dentry. Note that no locking required in notifier callback because PipeFS superblock poi

[Devel] [PATCH v2 4/5] NFS: remove RPC PipeFS mount point reference from blocklayout routines

2012-01-10 Thread Stanislav Kinsbursky
This is a cleanup patch. We don't need this reference anymore, because blocklayout pipes dentries now creates and destroys in per-net operations and on PipeFS mount/umount notification. Note that nfs4blocklayout_register_net() now returns 0 instead of -ENOENT in case of PipeFS superblock absence. T

[Devel] [PATCH v2 5/5] SUNRPC: kernel PipeFS mount point creation routines removed

2012-01-10 Thread Stanislav Kinsbursky
This patch removes static rpc_mnt variable and its creation and destruction routines, because they are not used anymore. Signed-off-by: Stanislav Kinsbursky --- include/linux/sunrpc/rpc_pipe_fs.h |2 -- net/sunrpc/rpc_pipe.c | 21 - 2 files changed, 0 inse

[Devel] [PATCH v2 0/5] NFS: create blocklayout pipe per network namesapce context

2012-01-10 Thread Stanislav Kinsbursky
This patch set was created in context of clone of git branch: git://git.linux-nfs.org/projects/trondmy/nfs-2.6.git. tag: v3.2 v2: 1) rebased on tag v3.2 This patch set depends on previous patch sets titled: 1) "SUNRPC: initial part of making pipefs work in net ns" 2) "SUNPRC: cleanup PipeFS for n

[Devel] Re: [PATCH 01/11] SYSCTL: export root and set handling routines

2012-01-10 Thread Eric W. Biederman
Stanislav Kinsbursky writes: > 03.01.2012 07:49, Eric W. Biederman пишет: >> Stanislav Kinsbursky writes: >> >>> 19.12.2011 20:37, Eric W. Biederman пишет: Stanislav Kinsbursky writes: Doing that independently of the rest of the sysctls is pretty horrible and confusing to u