* 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user