diff options
author | Steve French <sfrench@us.ibm.com> | 2006-03-02 03:53:17 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-03-02 03:53:17 +0000 |
commit | a4e85b5f620f59bd9308e29f833648f792d422f7 (patch) | |
tree | f724b8e8eeee187d3c6b2f35b821bcdfcdf1eef7 /fs/cifs | |
parent | 82940a465829b0c757dea45889aa150c8083e3d9 (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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 0fb42feff3c..0a46a9395ec 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c @@ -1166,7 +1166,7 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs) nfid, npid, FALSE); atomic_dec(&open_file->wrtPending); cFYI(1,("SetFSize for attrs rc = %d", rc)); - if(rc == -EINVAL) { + if((rc == -EINVAL) ||(rc == -EOPNOTSUPP)) { int bytes_written; rc = CIFSSMBWrite(xid, pTcon, nfid, 0, attrs->ia_size, |