rem: if(!rootfs_is_dir_empty(v)) { err = ERR_VFS_DIR_NOT_EMPTY;
add: if (vnode->stream.type == STREAM_TYPE_DIR && !rootfs_is_dir_empty(vnode)) { status = B_DIRECTORY_NOT_EMPTY;
context: rootfs_unlink(fs_cookie _fs, fs_vnode _dir, const char *name){	struct rootfs *fs = _fs;	struct rootfs_vnode *dir = _dir;	struct rootfs_vnode *v;	int err;	TRACE(("rootfs_unlink: dir 0x%x (0x%x 0x%x), name '%s'\n", dir, dir->id, name));	mutex_lock(&fs->lock);	v = rootfs_find_in_dir(dir, name);	if(!v) {		err = ERR_VFS_PATH_NOT_FOUND;		goto err;	}	// do some checking to see if we can delete it	if(!rootfs_is_dir_empty(v)) {		err = ERR_VFS_DIR_NOT_EMPTY;		goto err;	}	rootfs_remove_from_dir(dir, v);	// schedule this vnode to be removed when it's ref goes to zero	vfs_remove_vnode(fs->id, v->id);	err = 0;err:	mutex_unlock(&fs->lock);	return err;}