summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergiu Ivanov <unlimitedscolobb@gmail.com>2008-10-10 21:16:30 +0300
committerSergiu Ivanov <unlimitedscolobb@gmail.com>2008-10-10 21:16:30 +0300
commit7ef410a8a63a7e8ff206fe2baeea88a82fac48a3 (patch)
tree85cf9bc66be0433e434014bc998d7e5540b83ffe
parente266d6a45c1cd1269872528dbe148f88a01ac081 (diff)
Added the port to the untranslated version of the real node to the netnode
When 'file,,x' is requested, nsmux cannot tell whether 'x' is a filter or not and whether it will require the untranslated version of the file or not. However, when netfs_S_file_get_translator_cntl would like to show the translator stack on the *real* node, it will need the untranslated version of the node, which must be available by that time. The new field in netnode solves this issue.
-rw-r--r--node.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/node.h b/node.h
index 9ebe694d6..99096daf6 100644
--- a/node.h
+++ b/node.h
@@ -78,6 +78,9 @@ struct netnode
/*a port to the underlying filesystem*/
file_t port;
+ /*the port to the untranslated version of the node*/
+ file_t port_notrans;
+
/*the malloced set of translators which have to be stacked upon this node
and upon its children; the corresponding translators will have to decide
on their own whether to accept directories or not*/