[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: netfs questions

From: Roland McGrath
Subject: Re: netfs questions
Date: Thu, 7 Dec 2000 16:06:10 -0500 (EST)

> I have two questions about using netfs:

You should look at nfs for the examples of how it is used.

> 1. what is supposed to go in the 'struct netnode' of
>    the 'struct node' defined in <hurd/netfs.h>?
>    If I understand this right, struct netnode must be
>    defined by the user and is supposed to hold protocol
>    specific stuff of each node. Would a simple
>       struct netnode { };
>    suffice? (it compiles okay, but is it right?)

Yes, that is fine with libnetfs if it is fine with you.  This structure is
where data about the node should be stored.  You need to put there whatever
is required to access the file (e.g. the NFS file handle for nfs).  You
also store there whatever local state you want inside the filesystem about
a node that is being used.

> 2. what is supposed to be put in a root node, suitable
>    for netfs_root_node?

That is the node for the root directory of the filesystem,
from which all else in the filesystem is looked up.  

reply via email to

[Prev in Thread] Current Thread [Next in Thread]