* add implementation of bindfs, which can be used to bind-mount

a folder to some other place in the filesystem hierarchy
* add helper function to VFS that encapsulates the "conversion" of a
  vnode-pointer to a fs_vnode-pointer (used by bindfs)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40238 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe
2011-01-16 16:33:11 +00:00
parent 6420e23bca
commit 137c5fe2ba
13 changed files with 1816 additions and 0 deletions
+12
View File
@@ -4100,6 +4100,18 @@ vfs_vnode_to_node_ref(struct vnode* vnode, dev_t* _mountID, ino_t* _vnodeID)
}
/*!
Helper function abstracting the process of "converting" a given
vnode-pointer to a fs_vnode-pointer.
Currently only used in bindfs.
*/
extern "C" fs_vnode*
vfs_fsnode_for_vnode(struct vnode* vnode)
{
return vnode;
}
/*!
Calls fs_open() on the given vnode and returns a new
file descriptor for it