aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2006-03-01 22:53:17 -0500
committerSteve French <sfrench@us.ibm.com>2006-03-01 22:53:17 -0500
commita4e85b5f620f59bd9308e29f833648f792d422f7 (patch)
treef724b8e8eeee187d3c6b2f35b821bcdfcdf1eef7 /fs/cifs
parent82940a465829b0c757dea45889aa150c8083e3d9 (diff)
[CIFS] Allow fallback for setting file size to Procom SMB server when
returns error invalid level Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/inode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index 0fb42feff3c7..0a46a9395ec4 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -1166,7 +1166,7 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs)
1166 nfid, npid, FALSE); 1166 nfid, npid, FALSE);
1167 atomic_dec(&open_file->wrtPending); 1167 atomic_dec(&open_file->wrtPending);
1168 cFYI(1,("SetFSize for attrs rc = %d", rc)); 1168 cFYI(1,("SetFSize for attrs rc = %d", rc));
1169 if(rc == -EINVAL) { 1169 if((rc == -EINVAL) ||(rc == -EOPNOTSUPP)) {
1170 int bytes_written; 1170 int bytes_written;
1171 rc = CIFSSMBWrite(xid, pTcon, 1171 rc = CIFSSMBWrite(xid, pTcon,
1172 nfid, 0, attrs->ia_size, 1172 nfid, 0, attrs->ia_size,