From af445935555dc3fab3cefc52b375dd18b8d9bb4c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 19 May 2010 19:28:26 -0700 Subject: (Finally) fix bug #7158 - SMB2 connection resets during IOZone tests from 64-bit Vista client It turns out that the persistent handles are used by the Microsoft redirector to index files on oplock break requests. So even if we don't do durable handles (yet) we must set the persistent handle on create. For now just use the same handle value as we use for volatile. Jeremy. --- source3/smbd/smb2_read.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/smbd/smb2_read.c') diff --git a/source3/smbd/smb2_read.c b/source3/smbd/smb2_read.c index 7a92cdf920..d4c38d65df 100644 --- a/source3/smbd/smb2_read.c +++ b/source3/smbd/smb2_read.c @@ -83,7 +83,7 @@ NTSTATUS smbd_smb2_request_process_read(struct smbd_smb2_request *req) if (req->compat_chain_fsp) { /* skip check */ - } else if (in_file_id_persistent != 0) { + } else if (in_file_id_persistent != in_file_id_volatile) { return smbd_smb2_request_error(req, NT_STATUS_FILE_CLOSED); } -- cgit