Lines Matching refs:directory

1965 		// Get current working directory from io context
1989 /*! \brief Gets the directory path and leaf name for a given path.
1991 The supplied \a path is transformed to refer to the directory part of
2058 // get the directory vnode and let vnode_path_to_vnode() do the rest
2059 struct vnode* directory;
2061 status_t status = get_vnode(mountID, directoryID, &directory, true, false);
2065 return vnode_path_to_vnode(directory, clonedName, traverse, kernel,
2070 /*! Looks up the entry with name \a name in the directory represented by \a dir
2116 If the function fails and leafName is not NULL, \a _vnode contains the last directory,
2124 last existing directory in the path. The caller has responsibility to release it using
2183 // check if vnode is really a directory
2187 // Check if we have the right to search the current directory vnode.
2189 // searching a directory is always allowed
2242 // Check if we start from the root directory or the current
2243 // directory ("vnode" still points to that one).
2244 // Cut off all leading slashes if it's the root directory
2248 // we don't need the old directory anymore
2376 /*! \brief Retrieves the directory vnode and the leaf name of an entry referred
2381 directory. If both a supplied and \a path is relative it is reckoned off
2382 of the directory referred to by \a fd. If \a path is absolute \a fd is
2386 directory vnode.
2392 \param _vnode A pointer to a variable the directory vnode shall be written
2419 /*! \brief Retrieves the directory vnode and the leaf name of an entry referred
2424 directory. If both a supplied and \a path is relative it is reckoned off
2425 of the directory referred to by \a vnode. If \a path is absolute \a vnode is
2429 directory vnode.
2438 \param _vnode A pointer to a variable the directory vnode shall be written
2493 // parent directory for the vnode, if the caller let us.
2548 /*! Gets the full path to a given directory vnode.
2551 through the parent directory to get the name of the child.
2795 // If the vnode is locked, we don't allow creating a new file/directory
2916 // get the directory path
2923 // insert a directory separator if this is not the file system
3116 // resolve the directory node
4411 // goto the next directory
4428 // if we got here, the moduleName just pointed to a directory, not to
4437 directory, that is chopping off the leaf component the remaining path must
4438 refer to an existing directory.
4442 and none of the directory components will by symbolic links.
4576 // Get current working directory from io context
4833 // referenced directory
4844 // get the directory path
4853 // insert a directory separator if this is not the file system root
5378 create_vnode(struct vnode* directory, const char* name, int openMode,
5389 // for the directory might not necessarily also be the one responsible for
5404 status = lookup_dir_entry(directory, name, &entry);
5420 inc_vnode_ref_count(directory);
5422 status = vnode_path_to_vnode(directory, clonedName, true,
5427 // directory found in the path
5429 directory = vnode.Detach();
5430 dirPutter.SetTo(directory);
5453 if (!HAS_FS_CALL(directory, create))
5456 status = FS_CALL(directory, create, name, openMode | O_EXCL, perms,
5470 vnode.SetTo(lookup_vnode(directory->device, newID));
5475 "mount ID %" B_PRIdDEV "!\n", directory->device);
5492 FS_CALL(directory, unlink, name);
5512 // directory is opened, create a fd
5539 // directory is opened, create a fd
5559 // get directory to put the new file in
5560 struct vnode* directory;
5561 status_t status = get_vnode(mountID, directoryID, &directory, true, false);
5565 status = create_vnode(directory, name, openMode, perms, kernel);
5566 put_vnode(directory);
5578 // get directory to put the new file in
5580 VnodePutter directory;
5581 status_t status = fd_and_path_to_dir_vnode(fd, path, directory, name,
5586 return create_vnode(directory.Get(), name, openMode, perms, kernel);
6030 // If this is the ".." entry and the directory covering another vnode,
6124 VnodePutter directory;
6125 status = fd_and_path_to_dir_vnode(fd, path, directory, name, kernel);
6129 if (HAS_FS_CALL(directory, remove_dir))
6130 status = FS_CALL(directory.Get(), remove_dir, name);
6491 VnodePutter directory;
6492 status_t status = fd_and_path_to_dir_vnode(pathFD, path, directory, name,
6503 if (directory->mount != vnode->mount)
6506 if (HAS_FS_CALL(directory, link))
6507 status = FS_CALL(directory.Get(), link, name, vnode.Get());
7048 // get fd for the index directory
7251 // get fd for the index directory
7550 // make sure covered_vnode is a directory
8070 // Get current working directory from io context
8113 // We need to have the permission to enter the directory, too
8124 // save the old current working directory first
8284 of the directory (!) identified by \a fd.
8306 /*! \brief Opens a directory specified by entry_ref or node_ref.
8308 The supplied name may be \c NULL, in which case directory identified
8310 \a inode identify the parent directory of the directory to be opened
8314 directory of the directory to be opened resides on, otherwise
8315 the device of the directory itself.
8317 directory of the directory to be opened, otherwise node ID of the
8318 directory itself.
8319 \param name The entry name of the directory to be opened. If \c NULL,
8321 \return The FD of the newly opened directory or an error code, if
8331 /*! \brief Opens a directory specified by a FD + path pair.
8334 If only \a fd is given, the function opens the directory identified by this
8337 of the directory (!) identified by \a fd.
8341 \return A FD referring to the newly opened directory, or an error code,
8398 /*! \brief Creates a directory specified by a FD + path pair.
8400 \a path must always be specified (it contains the name of the new directory
8402 which the directory shall be created. If both \a fd and \a path are given
8404 of the directory (!) identified by \a fd.
8408 \param perms The access permissions the new directory shall have.
8409 \return \c B_OK, if the directory has been created successfully, another
8440 ignored; a relative path is reckoned off of the directory (!) identified
8470 of the directory (!) identified by \a fd.
8504 /*! \brief Removes an entry specified by a FD + path pair from its directory.
8509 \a fd is ignored; a relative path is reckoned off of the directory (!)
8534 the FD is ignored; a relative path is reckoned off of the directory (!)
8577 \a fd is ignored; a relative path is reckoned off of the directory (!)
8622 \a fd is ignored; a relative path is reckoned off of the directory (!)
8757 // Call vfs to get current working directory
9124 /*! \brief Opens a directory's parent directory and returns the entry name
9127 Aside from that it returns the directory's entry name, this method is
9134 \param fd A FD referring to a directory.
9135 \param userName Buffer the directory's entry name shall be written into.
9138 \return The file descriptor of the opened parent directory, if everything
9495 // split into directory vnode and filename path