Lines Matching refs:full_path
54 char *full_path = NULL; in cifs_build_path_to_root() local
58 full_path = kzalloc(1, GFP_KERNEL); in cifs_build_path_to_root()
59 return full_path; in cifs_build_path_to_root()
67 full_path = kmalloc(dfsplen + pplen + 1, GFP_KERNEL); in cifs_build_path_to_root()
68 if (full_path == NULL) in cifs_build_path_to_root()
69 return full_path; in cifs_build_path_to_root()
72 memcpy(full_path, tcon->treeName, dfsplen); in cifs_build_path_to_root()
73 full_path[dfsplen] = CIFS_DIR_SEP(cifs_sb); in cifs_build_path_to_root()
74 memcpy(full_path + dfsplen + 1, vol->prepath, pplen); in cifs_build_path_to_root()
75 convert_delimiter(full_path, CIFS_DIR_SEP(cifs_sb)); in cifs_build_path_to_root()
76 return full_path; in cifs_build_path_to_root()
98 char *full_path; in build_path_from_dentry_optional_prefix() local
128 full_path = kmalloc(namelen+1, GFP_ATOMIC); in build_path_from_dentry_optional_prefix()
129 if (full_path == NULL) in build_path_from_dentry_optional_prefix()
130 return full_path; in build_path_from_dentry_optional_prefix()
131 full_path[namelen] = 0; /* trailing null */ in build_path_from_dentry_optional_prefix()
140 full_path[namelen] = dirsep; in build_path_from_dentry_optional_prefix()
141 strncpy(full_path + namelen + 1, temp->d_name.name, in build_path_from_dentry_optional_prefix()
143 cifs_dbg(FYI, "name: %s\n", full_path + namelen); in build_path_from_dentry_optional_prefix()
150 kfree(full_path); in build_path_from_dentry_optional_prefix()
161 kfree(full_path); in build_path_from_dentry_optional_prefix()
175 memcpy(full_path+dfsplen+1, cifs_sb->prepath, pplen-1); in build_path_from_dentry_optional_prefix()
176 full_path[dfsplen] = dirsep; in build_path_from_dentry_optional_prefix()
178 if (full_path[dfsplen+1+i] == '/') in build_path_from_dentry_optional_prefix()
179 full_path[dfsplen+1+i] = CIFS_DIR_SEP(cifs_sb); in build_path_from_dentry_optional_prefix()
183 strncpy(full_path, tcon->treeName, dfsplen); in build_path_from_dentry_optional_prefix()
187 if (full_path[i] == '\\') in build_path_from_dentry_optional_prefix()
188 full_path[i] = '/'; in build_path_from_dentry_optional_prefix()
192 return full_path; in build_path_from_dentry_optional_prefix()
235 char *full_path = NULL; in cifs_do_create() local
246 full_path = build_path_from_dentry(direntry); in cifs_do_create()
247 if (!full_path) in cifs_do_create()
253 rc = cifs_posix_open(full_path, &newinode, inode->i_sb, mode, in cifs_do_create()
363 oparms.path = full_path; in cifs_do_create()
411 rc = cifs_get_inode_info_unix(&newinode, full_path, inode->i_sb, in cifs_do_create()
415 rc = cifs_get_inode_info(&newinode, full_path, buf, inode->i_sb, in cifs_do_create()
450 kfree(full_path); in cifs_do_create()
621 char *full_path = NULL; in cifs_mknod() local
635 full_path = build_path_from_dentry(direntry); in cifs_mknod()
636 if (full_path == NULL) { in cifs_mknod()
642 full_path, mode, in cifs_mknod()
646 kfree(full_path); in cifs_mknod()
662 char *full_path = NULL; in cifs_lookup() local
689 full_path = build_path_from_dentry(direntry); in cifs_lookup()
690 if (full_path == NULL) { in cifs_lookup()
702 full_path, d_inode(direntry)); in cifs_lookup()
705 rc = smb311_posix_get_inode_info(&newInode, full_path, parent_dir_inode->i_sb, xid); in cifs_lookup()
707 rc = cifs_get_inode_info_unix(&newInode, full_path, in cifs_lookup()
710 rc = cifs_get_inode_info(&newInode, full_path, NULL, in cifs_lookup()
729 kfree(full_path); in cifs_lookup()