[PATCH] Add the .MASTER node to the eth-multiplexer.

2009-12-24 Thread Sergiu Ivanov
* eth-multiplexer/device_impl.c (ds_device_open): Handle the .MASTER node specially. * eth-multiplexer/multiplexer.c (main): Create the .MASTER node. * eth-multiplexer/netfs_impl.c (master_node): New variable. (lookup): Handle the lookups for .MASTER specially. (netfs_add_dirents): Add the .MASTER

Re: [PATCH] Add the .MASTER node to the eth-multiplexer.

2009-12-24 Thread Sergiu Ivanov
Hello, On Thu, Dec 24, 2009 at 05:52:48PM +0800, Da Zheng wrote: > Sergiu Ivanov wrote: > > > On Wed, Dec 23, 2009 at 08:52:33AM +0800, Da Zheng wrote: > >> netfs_attempt_lookup locks this node and the node is unlocked by > >> libnetfs, right? I forget a lot:-) So why can the second lookup not > >

Re: [PATCH] Add the .MASTER node to the eth-multiplexer.

2009-12-24 Thread Da Zheng
Sergiu Ivanov wrote: > Hello, > > On Wed, Dec 23, 2009 at 08:52:33AM +0800, Da Zheng wrote: >> netfs_attempt_lookup locks this node and the node is unlocked by >> libnetfs, right? I forget a lot:-) So why can the second lookup not >> wait until the first one finishes? > > I've tried to remove the

Re: [PATCH] Add the .MASTER node to the eth-multiplexer.

2009-12-23 Thread Sergiu Ivanov
Hello, On Wed, Dec 23, 2009 at 08:52:33AM +0800, Da Zheng wrote: > netfs_attempt_lookup locks this node and the node is unlocked by > libnetfs, right? I forget a lot:-) So why can the second lookup not > wait until the first one finishes? I've tried to remove the mutex unlocking code and it seems

Re: [PATCH] Add the .MASTER node to the eth-multiplexer.

2009-12-22 Thread Da Zheng
Sergiu Ivanov wrote: > Hello, > > On Tue, Dec 22, 2009 at 07:37:21PM +0800, Da Zheng wrote: >> Sergiu Ivanov wrote: >>> @@ -85,6 +89,18 @@ new_node (struct lnode *ln, struct node **np) >>> struct node * >>> lookup (char *name) >>> { >>> + if (strcmp(name, MASTER_NODE_NAME) == 0) >>> +{ >>>

Re: [PATCH] Add the .MASTER node to the eth-multiplexer.

2009-12-22 Thread Sergiu Ivanov
Hello, On Tue, Dec 22, 2009 at 07:37:21PM +0800, Da Zheng wrote: > Sergiu Ivanov wrote: > > @@ -85,6 +89,18 @@ new_node (struct lnode *ln, struct node **np) > > struct node * > > lookup (char *name) > > { > > + if (strcmp(name, MASTER_NODE_NAME) == 0) > > +{ > > + netfs_nref (master_n

Re: [PATCH] Add the .MASTER node to the eth-multiplexer.

2009-12-22 Thread Da Zheng
Hi, Sergiu Ivanov wrote: > diff --git a/eth-multiplexer/netfs_impl.c b/eth-multiplexer/netfs_impl.c > index c70701b..875ff48 100644 > --- a/eth-multiplexer/netfs_impl.c > +++ b/eth-multiplexer/netfs_impl.c > @@ -31,6 +31,10 @@ > #include "vdev.h" > #include "util.h" > > +/* The .MASTER node wh

[PATCH] Add the .MASTER node to the eth-multiplexer.

2009-08-10 Thread Sergiu Ivanov
>From 82f635e6ecafe74c70269babfb0e0bb0e7db99db Mon Sep 17 00:00:00 2001 From: Sergiu Ivanov Date: Mon, 10 Aug 2009 20:13:26 +0300 Subject: [PATCH] Add the .MASTER node to the eth-multiplexer. * eth-multiplexer/device_impl.c (ds_device_open): Handle the .MASTER node specially. * eth-multiple