projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82940a4
)
[CIFS] Allow fallback for setting file size to Procom SMB server when
author
Steve French
<sfrench@us.ibm.com>
Thu, 2 Mar 2006 03:53:17 +0000
(
03:53
+0000)
committer
Steve French
<sfrench@us.ibm.com>
Thu, 2 Mar 2006 03:53:17 +0000
(
03:53
+0000)
returns error invalid level
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/inode.c
patch
|
blob
|
history
diff --git
a/fs/cifs/inode.c
b/fs/cifs/inode.c
index 0fb42feff3c7bd70a3a8fce37000f075dc0c5bd0..0a46a9395ec44782a775bede25a1a79add156114 100644
(file)
--- 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,