Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Element is a normal path element */
- /* Isolate it */
- strncpy(path_element, remaining_path, element_size);
- path_element[element_size] = '\0';
- /* Find the directory entry for it */
- status = vfs_find_dirent(parent, path_element, &dirent);
- /* Check an error occurred */
- if (status) {
- /* If not, clean up and return */
- heapmm_free(path_element,
- CONFIG_FILE_MAX_NAME_LENGTH);
- /* Release parent dirc */
- /* ?!?!? status = ?!?!?! */vfs_dir_cache_release(dirc);
- THROW(status, NULL);
- }
- /* Create new dirc entry for this element */
- newc = vfs_dir_cache_new(dirc, dirent->inode_id);
- assert(newc != NULL);
- /* Release old element */
- vfs_dir_cache_release(dirc);
- /* Update current element */
- dirc = newc;
- parent = dirc->inode;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement