linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* DFS patch series
@ 2008-04-26  0:34 Steve French
  2008-04-26 17:41 ` DFS patch series - fixed Igor Mammedov
  0 siblings, 1 reply; 5+ messages in thread
From: Steve French @ 2008-04-26  0:34 UTC (permalink / raw)
  To: Q (Igor Mammedov), Igor Mammedov; +Cc: Jeremy Allison, linux-fsdevel

I merged the first patch in your remaining cifs dfs series patch
0001-Adds-to-dns_resolver-checking-if-the-server-name-is.patch into
the cifs tree, but isn't this section of the 2nd patch of three ie
0002-fixed-compatibility-issue-with-samba-a-refferal-req.patch
incorrect? It is converting the slashes in the whole path (not in the
UNC prefix) - so escape sequences in real posix directory and file
names will be converted to separators.  This seems wrong.  We should
be converting just the treename part here.

@@ -243,6 +240,12 @@ static char
*build_full_dfs_path_from_dentry(struct dentry *dentry)
                strncpy(tmp_path, cifs_sb->tcon->treeName, l_max_len);
                strcat(tmp_path, search_path);
                tmp_path[l_max_len-1] = 0;
+               if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS)
+                       for (i = 0; i < l_max_len; i++) {
+                               if (tmp_path[i] == '\\')
+                                       tmp_path[i] = '/';
+                       }
+
                full_path = tmp_path;
                kfree(search_path);
        } else {


-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-04-28 23:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-26  0:34 DFS patch series Steve French
2008-04-26 17:41 ` DFS patch series - fixed Igor Mammedov
2008-04-28  3:40   ` Steve French
2008-04-28  8:05     ` Igor Mammedov
2008-04-28 23:06       ` Steve French

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).