8000 minix/minix/lib/libsffs/link.c at master · krackou/minix · GitHub
[go: up one dir, main page]

Skip to content
8000

Latest commit

 

History

History
366 lines (280 loc) · 8.65 KB

link.c

File metadata and controls

366 lines (280 loc) · 8.65 KB
}
/* If the new dentry already existed, it has now been overwritten.
* Delete the associated inode if we had found one.
*/
if (new_ino != NULL) {
del_dentry(new_ino);
put_inode(new_ino);
}
/* If the old dentry existed, rename it accordingly. */
if (old_ino != NULL) {
del_dentry(old_ino);
add_dentry(new_parent, new_name, old_ino);
put_inode(old_ino);
}
return OK;
}
0