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()
99 char *full_path; in build_path_from_dentry_optional_prefix() local
129 full_path = kmalloc(namelen+1, GFP_KERNEL); in build_path_from_dentry_optional_prefix()
130 if (full_path == NULL) in build_path_from_dentry_optional_prefix()
131 return full_path; in build_path_from_dentry_optional_prefix()
132 full_path[namelen] = 0; /* trailing null */ in build_path_from_dentry_optional_prefix()
141 full_path[namelen] = dirsep; in build_path_from_dentry_optional_prefix()
142 strncpy(full_path + namelen + 1, temp->d_name.name, in build_path_from_dentry_optional_prefix()
144 cifs_dbg(FYI, "name: %s\n", full_path + namelen); in build_path_from_dentry_optional_prefix()
151 kfree(full_path); in build_path_from_dentry_optional_prefix()
162 kfree(full_path); in build_path_from_dentry_optional_prefix()
176 memcpy(full_path+dfsplen+1, cifs_sb->prepath, pplen-1); in build_path_from_dentry_optional_prefix()
177 full_path[dfsplen] = '\\'; in build_path_from_dentry_optional_prefix()
179 if (full_path[dfsplen+1+i] == '/') in build_path_from_dentry_optional_prefix()
180 full_path[dfsplen+1+i] = CIFS_DIR_SEP(cifs_sb); in build_path_from_dentry_optional_prefix()
184 strncpy(full_path, tcon->treeName, dfsplen); in build_path_from_dentry_optional_prefix()
188 if (full_path[i] == '\\') in build_path_from_dentry_optional_prefix()
189 full_path[i] = '/'; in build_path_from_dentry_optional_prefix()
193 return full_path; in build_path_from_dentry_optional_prefix()
236 char *full_path = NULL; in cifs_do_create() local
247 full_path = build_path_from_dentry(direntry); in cifs_do_create()
248 if (full_path == NULL) { in cifs_do_create()
256 rc = cifs_posix_open(full_path, &newinode, inode->i_sb, mode, in cifs_do_create()
369 oparms.path = full_path; in cifs_do_create()
417 rc = cifs_get_inode_info_unix(&newinode, full_path, inode->i_sb, in cifs_do_create()
420 rc = cifs_get_inode_info(&newinode, full_path, buf, inode->i_sb, in cifs_do_create()
455 kfree(full_path); in cifs_do_create()
629 char *full_path = NULL; in cifs_mknod() local
651 full_path = build_path_from_dentry(direntry); in cifs_mknod()
652 if (full_path == NULL) { in cifs_mknod()
672 rc = CIFSSMBUnixSetPathInfo(xid, tcon, full_path, &args, in cifs_mknod()
678 rc = cifs_get_inode_info_unix(&newinode, full_path, in cifs_mknod()
709 oparms.path = full_path; in cifs_mknod()
752 kfree(full_path); in cifs_mknod()
769 char *full_path = NULL; in cifs_lookup() local
796 full_path = build_path_from_dentry(direntry); in cifs_lookup()
797 if (full_path == NULL) { in cifs_lookup()
809 full_path, d_inode(direntry)); in cifs_lookup()
812 rc = cifs_get_inode_info_unix(&newInode, full_path, in cifs_lookup()
815 rc = cifs_get_inode_info(&newInode, full_path, NULL, in cifs_lookup()
834 kfree(full_path); in cifs_lookup()