Lines Matching refs:directory

995 /**	\brief Gets the directory path and leaf name for a given path.
997 * The supplied \a path is transformed to refer to the directory part of
1051 // get the directory vnode and let vnode_path_to_vnode() do the rest
1052 struct vnode *directory;
1054 fssh_status_t status = get_vnode(mountID, directoryID, &directory, false);
1058 return vnode_path_to_vnode(directory, clonedName, false, 0, _vnode, NULL);
1138 // Check if we have the right to search the current directory vnode.
1140 // searching a directory is always allowed
1195 // Check if we start from the root directory or the current
1196 // directory ("vnode" still points to that one).
1197 // Cut off all leading slashes if it's the root directory
1200 // we don't need the old directory anymore
1301 /** \brief Retrieves the directory vnode and the leaf name of an entry referred
1306 * directory. If both a supplied and \a path is relative it is reckoned off
1307 * of the directory referred to by \a fd. If \a path is absolute \a fd is
1311 * directory vnode.
1317 * \param _vnode A pointer to a variable the directory vnode shall be written
1369 // parent directory for the vnode, if the caller let us.
1419 /** Gets the full path to a given directory vnode.
1422 * through the parent directory to get the name of the child.
2554 // goto the next directory
2574 // if we got here, the moduleName just pointed to a directory, not to
2587 * directory, that is chopping off the leaf component the remaining path must
2588 * refer to an existing directory.
2592 * and none of the directory components will by symbolic links.
2634 // if the leaf is "." or "..", we directly get the correct directory
2645 // get the directory path
2655 // insert a directory separator only if this is not the file system root
2678 // Get current working directory from io context
2745 // referenced directory
2753 // get the directory path
2762 // insert a directory separator if this is not the file system root
2959 create_vnode(struct vnode *directory, const char *name, int openMode, int perms, bool kernel)
2966 if (!HAS_FS_CALL(directory, create))
2969 status = FS_CALL(directory, create, name, openMode, perms, &cookie, &newID);
2974 vnode = lookup_vnode(directory->device, newID);
2991 FS_CALL(directory, unlink, name);
3079 struct vnode *directory;
3084 // get directory to put the new file in
3085 status = get_vnode(mountID, directoryID, &directory, false);
3089 status = create_vnode(directory, name, openMode, perms, kernel);
3090 put_vnode(directory);
3100 struct vnode *directory;
3105 // get directory to put the new file in
3106 status = fd_and_path_to_dir_vnode(fd, path, &directory, name, kernel);
3110 status = create_vnode(directory, name, openMode, perms, kernel);
3112 put_vnode(directory);
3401 // If this is the ".." entry and the directory is the root of a FS,
3474 struct vnode *directory;
3499 status = fd_and_path_to_dir_vnode(fd, path, &directory, name, kernel);
3503 if (HAS_FS_CALL(directory, remove_dir)) {
3504 status = FS_CALL(directory, remove_dir, name);
3508 put_vnode(directory);
3752 struct vnode *directory, *vnode;
3757 status = path_to_dir_vnode(path, &directory, name, kernel);
3765 if (directory->mount != vnode->mount) {
3770 if (HAS_FS_CALL(directory, link))
3771 status = FS_CALL(directory, link, name, vnode);
3778 put_vnode(directory);
4319 // get fd for the index directory
4483 // get fd for the index directory
5012 // Get current working directory from io context
5060 // save the old current working directory first
5163 * of the directory (!) identified by \a fd.
5187 /** \brief Opens a directory specified by entry_ref or node_ref.
5189 * The supplied name may be \c NULL, in which case directory identified
5191 * \a inode identify the parent directory of the directory to be opened
5195 * directory of the directory to be opened resides on, otherwise
5196 * the device of the directory itself.
5198 * directory of the directory to be opened, otherwise node ID of the
5199 * directory itself.
5200 * \param name The entry name of the directory to be opened. If \c NULL,
5202 * \return The FD of the newly opened directory or an error code, if
5213 /** \brief Opens a directory specified by a FD + path pair.
5216 * If only \a fd is given, the function opens the directory identified by this
5219 * of the directory (!) identified by \a fd.
5223 * \return A FD referring to the newly opened directory, or an error code,
5273 /** \brief Creates a directory specified by a FD + path pair.
5275 * \a path must always be specified (it contains the name of the new directory
5277 * which the directory shall be created. If both \a fd and \a path are given and
5279 * of the directory (!) identified by \a fd.
5283 * \param perms The access permissions the new directory shall have.
5284 * \return \c FSSH_B_OK, if the directory has been created successfully, another
5320 * ignored; a relative path is reckoned off of the directory (!) identified
5355 * of the directory (!) identified by \a fd.
5396 /** \brief Removes an entry specified by a FD + path pair from its directory.
5401 * \a fd is ignored; a relative path is reckoned off of the directory (!)
5427 * the FD is ignored; a relative path is reckoned off of the directory (!)
5470 * \a fd is ignored; a relative path is reckoned off of the directory (!)
5537 * \a fd is ignored; a relative path is reckoned off of the directory (!)
5673 // Call vfs to get current working directory