aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/inode.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2005-09-18 23:49:21 -0400
committerSteve French <sfrench@us.ibm.com>2005-09-18 23:49:21 -0400
commit3e87d80391c84eefceb4bda94a6363661dba4f71 (patch)
treeef39515dde8b86007de4ad769716d375b8973dca /fs/cifs/inode.c
parentf9f5c81769f88bccd177423a30a7d30461754c39 (diff)
[CIFS] Add support for legacy servers part seven. Fix open for write,
begin implementation of Win9x style set file size via open then write of zero bytes. Signed-off-by: Steve French (sfrench@us.ibm.com)
Diffstat (limited to 'fs/cifs/inode.c')
-rw-r--r--fs/cifs/inode.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index 0fbe02ebc033..6e82e1ae03b4 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -1030,6 +1030,14 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs)
1030 /* now that we found one valid file 1030 /* now that we found one valid file
1031 handle no sense continuing to loop 1031 handle no sense continuing to loop
1032 trying others, so break here */ 1032 trying others, so break here */
1033 /* if(rc == -EINVAL) {
1034 int bytes_written;
1035 rc = CIFSSMBWrite(xid, pTcon,
1036 nfid, 0,
1037 attrs->ia_size,
1038 &bytes_written,
1039 NULL, NULL, long_op);
1040 } */
1033 break; 1041 break;
1034 } 1042 }
1035 } 1043 }
@@ -1048,6 +1056,13 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs)
1048 cifs_sb->mnt_cifs_flags & 1056 cifs_sb->mnt_cifs_flags &
1049 CIFS_MOUNT_MAP_SPECIAL_CHR); 1057 CIFS_MOUNT_MAP_SPECIAL_CHR);
1050 cFYI(1, (" SetEOF by path (setattrs) rc = %d", rc)); 1058 cFYI(1, (" SetEOF by path (setattrs) rc = %d", rc));
1059 /* if(rc == -EINVAL)
1060 old_style_set_eof_via_write(xid, pTcon,
1061 full_path,
1062 attrs->ia_size,
1063 cifs_sb->local_nls,
1064 cifs_sb->mnt_cifs_flags &
1065 CIFS_MOUNT_MAP_SPECIAL_CHR);*/
1051 } 1066 }
1052 1067
1053 /* Server is ok setting allocation size implicitly - no need 1068 /* Server is ok setting allocation size implicitly - no need