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 strncpy(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 strncpy(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 full_path[dfsplen + pplen] = 0; /* add trailing null */ in cifs_build_path_to_root()
77 return full_path; in cifs_build_path_to_root()
87 char *full_path; in build_path_from_dentry() local
113 full_path = kmalloc(namelen+1, GFP_KERNEL); in build_path_from_dentry()
114 if (full_path == NULL) in build_path_from_dentry()
115 return full_path; in build_path_from_dentry()
116 full_path[namelen] = 0; /* trailing null */ in build_path_from_dentry()
125 full_path[namelen] = dirsep; in build_path_from_dentry()
126 strncpy(full_path + namelen + 1, temp->d_name.name, in build_path_from_dentry()
128 cifs_dbg(FYI, "name: %s\n", full_path + namelen); in build_path_from_dentry()
135 kfree(full_path); in build_path_from_dentry()
146 kfree(full_path); in build_path_from_dentry()
157 strncpy(full_path, tcon->treeName, dfsplen); in build_path_from_dentry()
161 if (full_path[i] == '\\') in build_path_from_dentry()
162 full_path[i] = '/'; in build_path_from_dentry()
166 return full_path; in build_path_from_dentry()
203 char *full_path = NULL; in cifs_do_create() local
214 full_path = build_path_from_dentry(direntry); in cifs_do_create()
215 if (full_path == NULL) { in cifs_do_create()
223 rc = cifs_posix_open(full_path, &newinode, inode->i_sb, mode, in cifs_do_create()
329 oparms.path = full_path; in cifs_do_create()
377 rc = cifs_get_inode_info_unix(&newinode, full_path, inode->i_sb, in cifs_do_create()
380 rc = cifs_get_inode_info(&newinode, full_path, buf, inode->i_sb, in cifs_do_create()
411 kfree(full_path); in cifs_do_create()
578 char *full_path = NULL; in cifs_mknod() local
600 full_path = build_path_from_dentry(direntry); in cifs_mknod()
601 if (full_path == NULL) { in cifs_mknod()
621 rc = CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args, in cifs_mknod()
627 rc = cifs_get_inode_info_unix(&newinode, full_path, in cifs_mknod()
643 kfree(full_path); in cifs_mknod()
657 oparms.path = full_path; in cifs_mknod()
700 kfree(full_path); in cifs_mknod()
717 char *full_path = NULL; in cifs_lookup() local
741 full_path = build_path_from_dentry(direntry); in cifs_lookup()
742 if (full_path == NULL) { in cifs_lookup()
753 full_path, d_inode(direntry)); in cifs_lookup()
756 rc = cifs_get_inode_info_unix(&newInode, full_path, in cifs_lookup()
759 rc = cifs_get_inode_info(&newInode, full_path, NULL, in cifs_lookup()
782 kfree(full_path); in cifs_lookup()