Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86699
b: refs/heads/master
c: 11b6d64
h: refs/heads/master
i:
  86697: 82c9e65
  86695: 8f04c40
v: v3
  • Loading branch information
Igor Mammedov authored and Steve French committed Feb 15, 2008
1 parent 4e8fadc commit aa9eaf7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8aad018b6c1a0257b37cdf7c90cdbee2353150fd
refs/heads/master: 11b6d6450c10066e83e19f6ff57d55678c3e9f13
13 changes: 11 additions & 2 deletions trunk/fs/cifs/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -1722,8 +1722,15 @@ void reset_cifs_unix_caps(int xid, struct cifsTconInfo *tcon,
originally at mount time */
if ((saved_cap & CIFS_UNIX_POSIX_ACL_CAP) == 0)
cap &= ~CIFS_UNIX_POSIX_ACL_CAP;
if ((saved_cap & CIFS_UNIX_POSIX_PATHNAMES_CAP) == 0)
if ((saved_cap & CIFS_UNIX_POSIX_PATHNAMES_CAP) == 0) {
if (cap & CIFS_UNIX_POSIX_PATHNAMES_CAP)
cERROR(1, ("POSIXPATH support change"));
cap &= ~CIFS_UNIX_POSIX_PATHNAMES_CAP;
} else if ((cap & CIFS_UNIX_POSIX_PATHNAMES_CAP) == 0) {
cERROR(1, ("possible reconnect error"));
cERROR(1,
("server disabled POSIX path support"));
}
}

cap &= CIFS_UNIX_CAP_MASK;
Expand Down Expand Up @@ -2243,7 +2250,9 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb,
tcon->unix_ext = 0; /* server does not support them */

/* convert forward to back slashes in prepath here if needed */
convert_delimiter(cifs_sb->prepath, CIFS_DIR_SEP(cifs_sb));
if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_POSIX_PATHS) == 0)
convert_delimiter(cifs_sb->prepath,
CIFS_DIR_SEP(cifs_sb));

if ((tcon->unix_ext == 0) && (cifs_sb->rsize > (1024 * 127))) {
cifs_sb->rsize = 1024 * 127;
Expand Down

0 comments on commit aa9eaf7

Please sign in to comment.