diff options
author | Steve French <sfrench@us.ibm.com> | 2007-09-16 22:04:21 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2007-09-16 22:04:21 -0400 |
commit | c45d707f67b82236fcf9ca2af31c264669368b9b (patch) | |
tree | fde8fda767542a70cad4e86be74eff172be2359c /fs/cifs/inode.c | |
parent | 5a07cdf86c1485b570789fb660c8ada7c2635b23 (diff) |
[CIFS] Fallback to standard mkdir if server incorrectly claims support for
posix ops
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r-- | fs/cifs/inode.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 9dffa93d6bdd..552d68b9d6f4 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c | |||
@@ -925,7 +925,10 @@ int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode) | |||
925 | full_path, cifs_sb->local_nls, | 925 | full_path, cifs_sb->local_nls, |
926 | cifs_sb->mnt_cifs_flags & | 926 | cifs_sb->mnt_cifs_flags & |
927 | CIFS_MOUNT_MAP_SPECIAL_CHR); | 927 | CIFS_MOUNT_MAP_SPECIAL_CHR); |
928 | if (rc) { | 928 | if (rc == -EOPNOTSUPP) { |
929 | kfree(pInfo); | ||
930 | goto mkdir_retry_old; | ||
931 | } else if (rc) { | ||
929 | cFYI(1, ("posix mkdir returned 0x%x", rc)); | 932 | cFYI(1, ("posix mkdir returned 0x%x", rc)); |
930 | d_drop(direntry); | 933 | d_drop(direntry); |
931 | } else { | 934 | } else { |
@@ -977,7 +980,7 @@ int cifs_mkdir(struct inode *inode, struct dentry *direntry, int mode) | |||
977 | kfree(pInfo); | 980 | kfree(pInfo); |
978 | goto mkdir_out; | 981 | goto mkdir_out; |
979 | } | 982 | } |
980 | 983 | mkdir_retry_old: | |
981 | /* BB add setting the equivalent of mode via CreateX w/ACLs */ | 984 | /* BB add setting the equivalent of mode via CreateX w/ACLs */ |
982 | rc = CIFSSMBMkDir(xid, pTcon, full_path, cifs_sb->local_nls, | 985 | rc = CIFSSMBMkDir(xid, pTcon, full_path, cifs_sb->local_nls, |
983 | cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR); | 986 | cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR); |