s3:smb2_read: pass fsp->fnum to init_strict_lock_struct()
authorStefan Metzmacher <metze@samba.org>
Fri, 8 Jun 2012 09:19:00 +0000 (11:19 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sun, 17 Jun 2012 19:00:58 +0000 (21:00 +0200)
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

Signed-off-by: Jeremy Allison <jra@samba.org>
source3/smbd/smb2_read.c

index 21082e67cd8aef244711c989838d56442d2fc4f1..3c4b3e75bdd1b55681388caeaaffc16d99937314 100644 (file)
@@ -252,7 +252,7 @@ static int smb2_sendfile_send_data(struct smbd_smb2_read_state *state)
        }
 
        init_strict_lock_struct(fsp,
-                               state->in_file_id_volatile,
+                               fsp->fnum,
                                in_offset,
                                in_length,
                                READ_LOCK,
@@ -486,7 +486,7 @@ static struct tevent_req *smbd_smb2_read_send(TALLOC_CTX *mem_ctx,
        /* Fallback to synchronous. */
 
        init_strict_lock_struct(fsp,
-                               in_file_id_volatile,
+                               fsp->fnum,
                                in_offset,
                                in_length,
                                READ_LOCK,