Lines Matching defs:name
31 * supplying the name of the inode in @dent->d_name.name. ntfs_lookup()
32 * converts the name to Unicode and walks the contents of the directory inode
33 * @dir_ino looking for the converted Unicode name. If the name is found in the
38 * If the name is not found in the directory, a NULL inode is inserted into the
50 * name) will not find anything in dcache and will enter ->ntfs_lookup()
51 * instead, where we search the directory for a fully matching file name
52 * (including case) and if that is not found, we search for a file name that
64 * file name in the WIN32 or POSIX namespaces. In this case
65 * ntfs_lookup_inode_by_name() will return with name set to NULL and we
67 * 2) @dent matches (not including case) a directory entry with a file name in
69 * with name set to point to a kmalloc()ed ntfs_name structure containing
70 * the properly cased little endian Unicode name. We convert the name to the
71 * current NLS code page, search if a dentry with this name already exists
79 * directory entry with a file name in the DOS namespace. In this case
80 * ntfs_lookup_inode_by_name() will return with name set to point to a
83 * file name in the WIN32 namespace corresponding to the matched short file
84 * name. We then convert the name to the current NLS code page, and proceed
85 * searching for a dentry with this name, etc, as in case 2), above.
95 ntfs_name *name = NULL;
102 /* Convert the name of the dentry to Unicode. */
103 uname_len = ntfs_nlstoucs(vol, dent->d_name.name, dent->d_name.len,
107 ntfs_error(vol->sb, "Failed to convert name to "
112 &name);
124 if (!name) {
146 kfree(name);
150 /* It is guaranteed that @name is no longer allocated at this point. */
170 nls_name.name = NULL;
171 if (name->type != FILE_NAME_DOS) { /* Case 2. */
174 (ntfschar*)&name->name, name->len,
175 (unsigned char**)&nls_name.name, 0);
176 kfree(name);
177 } else /* if (name->type == FILE_NAME_DOS) */ { /* Case 3. */
181 kfree(name);
183 /* Find the WIN32 name corresponding to the matched DOS name. */
206 "file name. Run chkdsk.");
226 /* Convert the found WIN32 name to current NLS code page. */
229 (unsigned char**)&nls_name.name, 0);
242 nls_name.hash = full_name_hash(dent, nls_name.name, nls_name.len);
245 kfree(nls_name.name);
249 ntfs_error(vol->sb, "Illegal file name attribute. Run chkdsk.");
302 /* Find the first file name attribute in the mft record. */
316 "file name attribute. Run chkdsk.",