summaryrefslogtreecommitdiff
path: root/nsmux.c
diff options
context:
space:
mode:
authorSergiu Ivanov <unlimitedscolobb@gmail.com>2009-03-06 21:21:47 +0200
committerSergiu Ivanov <unlimitedscolobb@gmail.com>2009-03-06 21:21:47 +0200
commit48efa86dfe3e546190f997e70c307a231026d207 (patch)
treeb095f30d7ddec15469235ae9b5ef65b3ea7038b0 /nsmux.c
parent3cea8614816e68db569bbea21134c64273e037b5 (diff)
Added node types
Now inside each netnode (and, hence, inside each node) there is a field showing the type of the node. This is required because, at least in response to requests by the filter, proxy nodes and shadow nodes will have different jobs to do and the server-side implementation of filesystem RPCs in nsmux would need to know what actions they are expected to carry out.
Diffstat (limited to 'nsmux.c')
-rw-r--r--nsmux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nsmux.c b/nsmux.c
index d2da05086..3f222d2ee 100644
--- a/nsmux.c
+++ b/nsmux.c
@@ -908,6 +908,7 @@ error_t
/*`np` is a proxy node of the lower translator. We
have to create a shadow node explicitly. */
+
error = node_get_send_port (diruser, np, flags, &file);
if (error)
goto out;
@@ -928,6 +929,9 @@ error_t
if (!error && !excl)
{
+ /*We've just created a shadow node. */
+ np->nn->type = NODE_TYPE_SHADOW;
+
/*If there is at least one more separator in the
filename, we will have to do a retry */
nextsep = magic_find_sep(sep);