diff options
author | Steve French <sfrench@us.ibm.com> | 2005-09-18 20:49:21 -0700 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2005-09-18 20:49:21 -0700 |
commit | 3e87d80391c84eefceb4bda94a6363661dba4f71 (patch) | |
tree | ef39515dde8b86007de4ad769716d375b8973dca /fs/cifs/inode.c | |
parent | f9f5c81769f88bccd177423a30a7d30461754c39 (diff) | |
download | op-kernel-dev-3e87d80391c84eefceb4bda94a6363661dba4f71.zip op-kernel-dev-3e87d80391c84eefceb4bda94a6363661dba4f71.tar.gz |
[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.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 0fbe02e..6e82e1a 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c @@ -1030,6 +1030,14 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs) /* now that we found one valid file handle no sense continuing to loop trying others, so break here */ + /* if(rc == -EINVAL) { + int bytes_written; + rc = CIFSSMBWrite(xid, pTcon, + nfid, 0, + attrs->ia_size, + &bytes_written, + NULL, NULL, long_op); + } */ break; } } @@ -1048,6 +1056,13 @@ int cifs_setattr(struct dentry *direntry, struct iattr *attrs) cifs_sb->mnt_cifs_flags & CIFS_MOUNT_MAP_SPECIAL_CHR); cFYI(1, (" SetEOF by path (setattrs) rc = %d", rc)); + /* if(rc == -EINVAL) + old_style_set_eof_via_write(xid, pTcon, + full_path, + attrs->ia_size, + cifs_sb->local_nls, + cifs_sb->mnt_cifs_flags & + CIFS_MOUNT_MAP_SPECIAL_CHR);*/ } /* Server is ok setting allocation size implicitly - no need |