Added vfs_create() to create files and directories.

Moved mkdir to mknod so that mknod is the common handler for all node creation.
This commit is contained in:
Bahadir Balban
2008-02-16 15:22:08 +00:00
parent 08b1e0e42c
commit 0fdc64ba2d
5 changed files with 74 additions and 37 deletions

View File

@@ -51,6 +51,7 @@ struct vnode_ops {
vnode_op_t link;
vnode_op_t unlink;
int (*mkdir)(struct vnode *parent, char *name);
int (*mknod)(struct vnode *parent, char *name, unsigned int mode);
vnode_op_t rmdir;
vnode_op_t rename;
vnode_op_t getattr;