The Samba-Bugzilla – Attachment 6387 Details for
Bug 8067
smbtorture4 RAW-SEEK fails with "use sendfile=yes"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Possible patch
0001-Properly-update-file-position-on-read-when-use-sendf.patch (text/plain), 969 bytes, created by
Kyrylo Shpytsya
on 2011-04-07 11:45:36 UTC
(
hide
)
Description:
Possible patch
Filename:
MIME Type:
Creator:
Kyrylo Shpytsya
Created:
2011-04-07 11:45:36 UTC
Size:
969 bytes
patch
obsolete
>From 0237d06ccd2a391f91bb4ddc27dac8b46492b107 Mon Sep 17 00:00:00 2001 >From: Kyrylo Shpytsya <samba.3.uken@spamgourmet.com> >Date: Thu, 7 Apr 2011 14:41:34 +0300 >Subject: [PATCH] Properly update file position on read when "use sendfile=yes". > >--- > source3/smbd/reply.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > >diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c >index 5697594..24a7c84 100644 >--- a/source3/smbd/reply.c >+++ b/source3/smbd/reply.c >@@ -3626,6 +3626,9 @@ static void send_file_readX(connection_struct *conn, struct smb_request *req, > DEBUG( 3, ( "send_file_readX: sendfile fnum=%d max=%d nread=%d\n", > fsp->fnum, (int)smb_maxcnt, (int)nread ) ); > >+ fsp->fh->pos = startpos + nread - sizeof(headerbuf); >+ fsp->fh->position_information = fsp->fh->pos; >+ > /* Deal with possible short send. */ > if (nread != smb_maxcnt + sizeof(headerbuf)) { > sendfile_short_send(fsp, nread, sizeof(headerbuf), smb_maxcnt); >-- >1.7.4.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 8067
: 6387