Reorganised sys_open.

vfs_create and mknod now returns the newly created vnode.
(which might be used by upper layers).
This commit is contained in:
Bahadir Balban
2008-04-19 00:40:48 +01:00
parent f7163b7e93
commit 8c4c436925
5 changed files with 77 additions and 33 deletions

View File

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