Lines Matching refs:full_path
53 char *full_path; in build_path_from_dentry() local
80 full_path = kmalloc(namelen+1, GFP_KERNEL); in build_path_from_dentry()
81 if (full_path == NULL) in build_path_from_dentry()
82 return full_path; in build_path_from_dentry()
83 full_path[namelen] = 0; /* trailing null */ in build_path_from_dentry()
89 full_path[namelen] = dirsep; in build_path_from_dentry()
90 strncpy(full_path + namelen + 1, temp->d_name.name, in build_path_from_dentry()
92 cFYI(0, ("name: %s", full_path + namelen)); in build_path_from_dentry()
97 kfree(full_path); in build_path_from_dentry()
108 kfree(full_path); in build_path_from_dentry()
119 strncpy(full_path, cifs_sb->tcon->treeName, dfsplen); in build_path_from_dentry()
123 if (full_path[i] == '\\') in build_path_from_dentry()
124 full_path[i] = '/'; in build_path_from_dentry()
128 strncpy(full_path + dfsplen, CIFS_SB(direntry->d_sb)->prepath, pplen); in build_path_from_dentry()
129 return full_path; in build_path_from_dentry()
132 static int cifs_posix_open(char *full_path, struct inode **pinode, in cifs_posix_open() argument
142 cFYI(1, ("posix open %s", full_path)); in cifs_posix_open()
177 pnetfid, presp_data, &oplock, full_path, in cifs_posix_open()
237 char *full_path = NULL; in cifs_create() local
249 full_path = build_path_from_dentry(direntry); in cifs_create()
250 if (full_path == NULL) { in cifs_create()
267 rc = cifs_posix_open(full_path, &newinode, inode->i_sb, in cifs_create()
314 kfree(full_path); in cifs_create()
327 rc = CIFSSMBOpen(xid, tcon, full_path, disposition, in cifs_create()
336 rc = SMBLegacyOpen(xid, tcon, full_path, disposition, in cifs_create()
367 CIFSSMBUnixSetInfo(xid, tcon, full_path, &args, in cifs_create()
381 rc = cifs_get_inode_info_unix(&newinode, full_path, in cifs_create()
384 rc = cifs_get_inode_info(&newinode, full_path, buf, in cifs_create()
452 kfree(full_path); in cifs_create()
464 char *full_path = NULL; in cifs_mknod() local
475 full_path = build_path_from_dentry(direntry); in cifs_mknod()
476 if (full_path == NULL) in cifs_mknod()
493 rc = CIFSSMBUnixSetInfo(xid, pTcon, full_path, in cifs_mknod()
499 rc = cifs_get_inode_info_unix(&newinode, full_path, in cifs_mknod()
518 kfree(full_path); in cifs_mknod()
523 rc = CIFSSMBOpen(xid, pTcon, full_path, in cifs_mknod()
576 kfree(full_path); in cifs_mknod()
591 char *full_path = NULL; in cifs_lookup() local
620 full_path = build_path_from_dentry(direntry); in cifs_lookup()
621 if (full_path == NULL) { in cifs_lookup()
631 cFYI(1, ("Full path: %s inode = 0x%p", full_path, direntry->d_inode)); in cifs_lookup()
634 rc = cifs_get_inode_info_unix(&newInode, full_path, in cifs_lookup()
637 rc = cifs_get_inode_info(&newInode, full_path, NULL, in cifs_lookup()
667 kfree(full_path); in cifs_lookup()