Lines Matching full:directory
40 * Finding the Parent of a Directory
43 * Directories have parent pointers, in the sense that each directory contains
45 * way to find the parent of a given directory is to scan every directory in
46 * the filesystem looking for a child dirent that references this directory.
48 * This module wraps the process of scanning the directory tree. It requires
49 * that @sc->ip is the directory whose parent we want to find, and that the
50 * caller hold only the IOLOCK on that directory. The scan itself needs to
51 * take the ILOCK of each directory visited.
58 * filesystem, such as noticing directory tree roots and querying the dentry
63 /* The directory currently being scanned. */
67 * Scrub context. We're looking for a @dp containing a directory
77 * directory tree, we need this to ensure that we only find /one/
78 * parent directory.
84 * the directory scan but by noticing a change in dotdot entries after
91 * If this directory entry points to the scrub target inode, then the directory
112 /* Ignore garbage directory entry names. */ in xrep_findparent_dirent()
143 * If this is a directory, walk the dirents looking for any that point to the
157 * temporary directory we created to stage this repair. in xrep_findparent_walk_directory()
170 * Scan the directory to see if there it contains an entry pointing to in xrep_findparent_walk_directory()
171 * the directory that we are repairing. in xrep_findparent_walk_directory()
175 /* Don't mix metadata and regular directory trees. */ in xrep_findparent_walk_directory()
180 * If this directory is known to be sick, we cannot scan it reliably in xrep_findparent_walk_directory()
191 * We cannot complete our parent pointer scan if a directory looks as in xrep_findparent_walk_directory()
209 * Update this directory's dotdot pointer based on ongoing dirent updates.
243 * Set up a scan to find the parent of a directory. The provided dirent hook
289 * scrubbed. @sc->ip must not be the root of a directory tree. Callers must
350 * Confirm that the directory @parent_ino actually contains a directory entry
369 /* The root directory always points to itself. */ in xrep_findparent_confirm()
375 /* The metadata root directory always points to itself. */ in xrep_findparent_confirm()
416 * If we're the root of a directory tree, we are our own parent. If we're an
417 * unlinked directory, the parent /won't/ have a link to us. Set the parent
418 * directory to the root for both cases. Returns NULLFSINO if we don't know