From: Stefan Metzmacher Date: Fri, 8 Jun 2012 09:19:00 +0000 (+0200) Subject: s3:smb2_write: pass fsp->fnum to init_strict_lock_struct() X-Git-Url: http://git.samba.org/?a=commitdiff_plain;ds=sidebyside;h=46d293d03a895d82bfbf2b6b0c6af797acc39d0e;p=ddiss%2Fsamba.git s3:smb2_write: pass fsp->fnum to init_strict_lock_struct() fsp->fnum is the same as in_file_id_volatile. When we start to support durable handles we should pass in_file_id_persistent. metze Autobuild-User(master): Stefan Metzmacher Autobuild-Date(master): Sat Jun 9 18:50:32 CEST 2012 on sn-devel-104 Signed-off-by: Jeremy Allison --- diff --git a/source3/smbd/smb2_write.c b/source3/smbd/smb2_write.c index b2360caacec..9014fa42a9f 100644 --- a/source3/smbd/smb2_write.c +++ b/source3/smbd/smb2_write.c @@ -321,7 +321,7 @@ static struct tevent_req *smbd_smb2_write_send(TALLOC_CTX *mem_ctx, /* Fallback to synchronous. */ init_strict_lock_struct(fsp, - in_file_id_volatile, + fsp->fnum, in_offset, in_data.length, WRITE_LOCK,