提交 a4e85b5f 编写于 作者: S Steve French

[CIFS] Allow fallback for setting file size to Procom SMB server when

returns error invalid level
Signed-off-by: NSteve French <sfrench@us.ibm.com>
上级 82940a46
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册