diff options
author | Richard Sharpe <sharpe@samba.org> | 2003-01-01 21:54:00 +0000 |
---|---|---|
committer | Richard Sharpe <sharpe@samba.org> | 2003-01-01 21:54:00 +0000 |
commit | c105c12d122e599fe57dde8b2b73c52231f0c1d2 (patch) | |
tree | 65d3453b561f9c59f7714e96785d4ef83293d962 | |
parent | 60f9614400a073626344be6e0dedb8d15611cfff (diff) | |
download | samba-c105c12d122e599fe57dde8b2b73c52231f0c1d2.tar.gz samba-c105c12d122e599fe57dde8b2b73c52231f0c1d2.tar.bz2 samba-c105c12d122e599fe57dde8b2b73c52231f0c1d2.zip |
Document the size constraints on a write request.
(This used to be commit 5d6c1810330b38e48355078b7a5d53e7b5076f74)
-rw-r--r-- | source3/libsmb/clireadwrite.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/libsmb/clireadwrite.c b/source3/libsmb/clireadwrite.c index 187a40cade..d35b0dfdfd 100644 --- a/source3/libsmb/clireadwrite.c +++ b/source3/libsmb/clireadwrite.c @@ -284,10 +284,13 @@ static BOOL cli_issue_write(struct cli_state *cli, int fnum, off_t offset, uint1 SIVAL(cli->outbuf,smb_vwv5,0); SSVAL(cli->outbuf,smb_vwv7,mode); + SSVAL(cli->outbuf,smb_vwv8,(mode & 0x0008) ? size : 0); /* - * THe following is still wrong ... + * According to CIFS-TR-1p00, this following field should only + * be set if CAP_LARGE_WRITEX is set. We should check this + * locally. However, this check might already have been + * done by our callers. */ - SSVAL(cli->outbuf,smb_vwv8,(mode & 0x0008) ? size : 0); SSVAL(cli->outbuf,smb_vwv9,((size>>16)&1)); SSVAL(cli->outbuf,smb_vwv10,size); SSVAL(cli->outbuf,smb_vwv11, |