[linux-cifs-client] problems accessing winxp shares with directory links inside

Steven French sfrench at us.ibm.com
Tue Oct 19 21:59:20 GMT 2004


You are right.   You can cd into them with current cifs code but the 
reparse point is being handled strangely - ideally I should allow a 
readlink on them (to return the reparse text) but specialcase followlink

I have to think this through better.


Steve French
Senior Software Engineer
Linux Technology Center - IBM Austin
phone: 512-838-2294
email: sfrench at-sign us dot ibm dot com



Erik Latoshek <forester at hacker.lv> 
Sent by: linux-cifs-client-bounces+sfrench=us.ibm.com at lists.samba.org
10/16/2004 12:03 PM

To
linux-cifs-client at lists.samba.org
cc

Subject
[linux-cifs-client] problems accessing winxp shares with directory links 
inside






when mounting winxp sp2 shares on linux client, client is unable to 
access directories inside share which are actually links(created by 
alt+F6 in Far Manager) on windows machine.
cifs returns something like unable to acess symlink target.
knowing that smbfs in this case is working fine, i just removed all 
S_IFLNK code inside cifs kernel source tree with successfull results.

for example, file.c:
        if (pfindData->ExtFileAttributes & ATTR_REPARSE) {
                 *pobject_type = DT_LNK;
                 /* BB can this and S_IFREG or S_IFDIR be set as in 
Windows? */
                 tmp_inode->i_mode |= S_IFLNK;
         } else if (pfindData->ExtFileAttributes & ATTR_DIRECTORY) {
                 *pobject_type = DT_DIR;
                 /* override default perms since we do not lock dirs */

i removed first if clause, as i believe windows is returning 
simultaneously ATTR_REPARSE | ATTR_DIRECTORY but cifs does not handle 
such situations.

kernel 2.6.8.1 (colinux 0.6.2 pre4 patch)

_______________________________________________
linux-cifs-client mailing list
linux-cifs-client at lists.samba.org
http://lists.samba.org/mailman/listinfo/linux-cifs-client

-------------- next part --------------
HTML attachment scrubbed and removed


More information about the linux-cifs-client mailing list