* 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
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
> >
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
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
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)
>>> +{
>>>
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
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
>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