[linux-cifs-client] problems accessing winxp shares with directory
links inside
Erik Latoshek
forester at hacker.lv
Sat Oct 16 17:03:43 GMT 2004
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)
More information about the linux-cifs-client
mailing list