Added resolving of current directory in case lookup starts from current dir.

This commit is contained in:
Bahadir Balban
2008-04-16 14:48:05 +01:00
parent 9d32f840c0
commit 730e7c210f
8 changed files with 61 additions and 38 deletions

View File

@@ -210,7 +210,7 @@ int memfs_write_vnode(struct superblock *sb, struct vnode *v)
* Creates ordinary files and directories at the moment. In the future,
* other file types will be added.
*/
int memfs_vnode_mknod(struct vnode *v, char *dirname, unsigned int mode)
int memfs_vnode_mknod(struct vnode *v, const char *dirname, unsigned int mode)
{
struct dentry *d, *parent = list_entry(v->dentries.next,
struct dentry, vref);