Removed the fs_vnode_ops::create_dir() parameter for returning the ID of the
newly created dir. The VFS really doesn't need it and for some file systems it might not be easy to get by. Several file systems (e.g. rootfs and fat) were ignoring the parameter anyway. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29719 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -410,7 +410,7 @@ fs_read_vnode(fs_volume *_vol, ino_t vnid, fs_vnode *_node, int *_type, uint32 *
|
||||
|
||||
_node->private_node = NULL;
|
||||
_node->ops = &gNTFSVnodeOps;
|
||||
_flags = 0;
|
||||
_flags = 0;
|
||||
|
||||
newNode = (vnode*)ntfs_calloc( sizeof(vnode) );
|
||||
if ( newNode != NULL ) {
|
||||
@@ -1285,7 +1285,7 @@ exit:
|
||||
|
||||
|
||||
status_t
|
||||
fs_mkdir(fs_volume *_vol, fs_vnode *_dir, const char *name, int perms, ino_t *_vnid)
|
||||
fs_mkdir(fs_volume *_vol, fs_vnode *_dir, const char *name, int perms)
|
||||
{
|
||||
nspace *ns = (nspace*)_vol->private_volume;
|
||||
vnode *dir = (vnode*)_dir->private_node;
|
||||
@@ -1345,8 +1345,6 @@ fs_mkdir(fs_volume *_vol, fs_vnode *_dir, const char *name, int perms, ino_t *_v
|
||||
|
||||
result = publish_vnode(_vol, vnid, (void*)newNode,&gNTFSVnodeOps, 0777, 0);
|
||||
|
||||
*_vnid = vnid;
|
||||
|
||||
put_vnode(_vol, MREF(ni->mft_no));
|
||||
|
||||
ntfs_mark_free_space_outdated(ns);
|
||||
|
||||
Reference in New Issue
Block a user