diff options
author | Sergiu Ivanov <unlimitedscolobb@gmail.com> | 2009-03-06 21:21:47 +0200 |
---|---|---|
committer | Sergiu Ivanov <unlimitedscolobb@gmail.com> | 2009-03-06 21:21:47 +0200 |
commit | 48efa86dfe3e546190f997e70c307a231026d207 (patch) | |
tree | b095f30d7ddec15469235ae9b5ef65b3ea7038b0 /node.h | |
parent | 3cea8614816e68db569bbea21134c64273e037b5 (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 'node.h')
-rw-r--r-- | node.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -44,6 +44,11 @@ #define FLAG_NODE_INVALIDATE 0x00000002 /*this node must be updated */ #define FLAG_NODE_ULFS_UPTODATE 0x00000004 /*this node has just been updated */ /*---------------------------------------------------------------------------*/ +/*Types of nodes */ +#define NODE_TYPE_NORMAL 0 +#define NODE_TYPE_PROXY 1 +#define NODE_TYPE_SHADOW 2 +/*---------------------------------------------------------------------------*/ /*The type of offset corresponding to the current platform*/ #ifdef __USE_FILE_OFFSET64 # define OFFSET_T __off64_t @@ -75,6 +80,9 @@ struct netnode /*the flags associated with this node */ int flags; + /*the type of the current node */ + int type; + /*a port to the underlying filesystem */ file_t port; |