[haiku-development] Re: NFS fs driver preliminary (not yet working) patch

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Sat, 19 Apr 2008 16:20:25 +0200

On 2008-04-19 at 13:19:42 [+0200], Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> 
wrote:

> "Alex Roman" <alex.roman@xxxxxxxxx> wrote:
> > 3. publish_vnode() for the root node does not set the right "type"
> > (second last parameter of publish_vnode). I am not sure what that
> > type
> > is and so I don't know where to get it from.
> 
> "type" is the type information you get when you stat() a file. IOW it's
> the stat::st_mode field less the permission bits (although it probably
> doesn't hurt to pass them in there, too). For example, a file would
> have S_IFREG here (see sys/stat.h).

For the root node it should be safe just to pass S_IFDIR.

In case you aren't subscribed to the commits list, here's the mail that 
lists the FS interface changes and how to adjust a file system:

https://lists.berlios.de/pipermail/haiku-commits/2008-April/012943.html

Missing from the list is the removal of the notify_listeners() function. 
The other notify_*() functions have to be used instead.

CU, Ingo

Other related posts: