Sfoglia il codice sorgente

[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>

Steve French 19 anni fa
parent
commit
a4e85b5f62
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      fs/cifs/inode.c

+ 1 - 1
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,